summarylogtreecommitdiffstats
path: root/lto.sh.in
diff options
context:
space:
mode:
authorQue Quotion2019-07-09 03:20:55 +0900
committerQue Quotion2019-07-09 03:20:55 +0900
commitf0353340101edb85dfef54ab3caa396e8cf40a44 (patch)
treed1b2fef5737113126da72e6e3c2d6e3947f7b4c1 /lto.sh.in
parentf58dcae731c3f251c0c9807d9c4a8b3b9a92e736 (diff)
downloadaur-f0353340101edb85dfef54ab3caa396e8cf40a44.tar.gz
After doing no less than a million unit tests, confirmations, and building a dozen packages with no problems whatsoever, the code stopped working as documented. NOT THE FIRST TIME BASH, WTF??
Diffstat (limited to 'lto.sh.in')
-rw-r--r--lto.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/lto.sh.in b/lto.sh.in
index 1bff9ebd50a2..126a9fc175d1 100644
--- a/lto.sh.in
+++ b/lto.sh.in
@@ -14,7 +14,7 @@ build_options+=('lto' 'lto-thin')
buildenv_functions+=('buildenv_lto')
buildenv_lto() {
- if [ check_buildoption "lto" "y" || check_buildoption "lto-thin" "y" ] && \
+ if check_buildoption "lto" "y" || check_buildoption "lto-thin" "y" && \
[[ -f "$(gcc -print-search-dirs | grep install | awk '{print $2 "liblto_plugin.so"}')" ]]; then
[[ "$CC" == "clang" ]] && \
CFLAGS+=" -flto" || \