better LTO mode detection warnings
MODIFY
llvm_mode/GNUmakefile
llvm_mode/GNUmakefile
@@ -187,13 +187,19 @@ ifeq "$(LLVM_LTO)" "1"
LLVM_LTO = 0
endif
endif
+ else
+ $(warn -flto is not working (LLVMgold.so not found?), cannot enable LTO mode)
+ LLVM_LTO = 0
endif
endif
AFL_CLANG_FUSELD=
-ifneq "$(AFL_CLANG_FLTO)" ""
+ifeq "$(LLVM_LTO)" "1"
ifeq "$(shell echo 'int main() {return 0; }' | $(CLANG_BIN) -x c - -fuse-ld=`command -v ld` -o .test 2>/dev/null && echo 1 || echo 0 ; rm -f .test )" "1"
AFL_CLANG_FUSELD=1
+ else
+ $(warn -fuse-ld is not working, cannot enable LTO mode)
+ LLVM_LTO = 0
endif
endif

better LTO mode detection warnings