about summary refs log tree commit diff
path: root/llvm_mode/Makefile
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2019-10-30 17:04:43 +0000
committerDavid Carlier <devnexen@gmail.com>2019-10-30 17:09:01 +0000
commit16953b5cfa040c886d0edfbf2f4da478c3e6014d (patch)
tree220e544c0350de072431cdc8363affec5a6b23aa /llvm_mode/Makefile
parentcfccadcdc457ab5ad05c8f7c34c737305a28689f (diff)
downloadafl++-16953b5cfa040c886d0edfbf2f4da478c3e6014d.tar.gz
LLVM mode passing the full path of the LLVM config bindir.
On FreeBSD the system compiler does not have llvm-config
however system packages provides several version of the
LLVM toolchain thus forcing to pass AFL_CC/AFL_CXX to make
it work fully.
Diffstat (limited to 'llvm_mode/Makefile')
-rw-r--r--llvm_mode/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm_mode/Makefile b/llvm_mode/Makefile
index 7cfbe92d..033babac 100644
--- a/llvm_mode/Makefile
+++ b/llvm_mode/Makefile
@@ -52,7 +52,7 @@ endif
 CFLAGS      ?= -O3 -funroll-loops
 CFLAGS      += -Wall -D_FORTIFY_SOURCE=2 -g -Wno-pointer-sign -I ../include/ \
                -DAFL_PATH=\"$(HELPER_PATH)\" -DBIN_PATH=\"$(BIN_PATH)\" \
-               -DVERSION=\"$(VERSION)\"
+               -DLLVM_BINDIR=\"$(LLVM_BINDIR)\" -DVERSION=\"$(VERSION)\"
 ifdef AFL_TRACE_PC
   CFLAGS    += -DUSE_TRACE_PC=1
 endif