summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 445e0d6..29f1f93 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -84,7 +84,7 @@ ToiletKit_LDFLAGS = -lgmp -lffi -ldl
ifeq ($(USE_LLVM),YES)
-ADDITIONAL_OBJCFLAGS += -DUSE_LLVM
+ADDITIONAL_OBJCFLAGS += -DUSE_LLVM -DLLVM_MAJOR_VERSION=$(shell llvm-config --version | cut -f 1 -d.) -DLLVM_MINOR_VERSION=$(shell llvm-config --version | cut -f 2 -d. | sed s/svn//)
LLVM_CONFIG = llvm-config
LLVM_LDFLAGS = $(shell $(LLVM_CONFIG) --ldflags) $(shell $(LLVM_CONFIG) --libs backend engine linker codegen transformutils scalaropts analysis ipo)
endif