From 54961d09a75b3b7c3dc411c47567caf0d963dfbf Mon Sep 17 00:00:00 2001 From: Matthias Benkard Date: Tue, 19 Aug 2008 17:31:45 +0200 Subject: Make Toilet Lisp compile with LLVM 2.3. --- GNUmakefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index 7fb8754..24bfd8f 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -72,11 +72,11 @@ ToiletKit_LDFLAGS = -lgmp -lffi -ldl USE_LLVM := YES ifeq ($(USE_LLVM),YES) -ADDITIONAL_OBJCCFLAGS = $(ADDITIONAL_OBJCFLAGS) +ADDITIONAL_OBJCCFLAGS += $(ADDITIONAL_OBJCFLAGS) ToiletKit_OBJC_FILES += MLKLexicalContext-MLKLLVMCompilation.m -ToiletKit_OBJCC_FILES = MLKLLVMCompiler.mm -ToiletKit_OBJCFLAGS = -DUSE_LLVM -ToiletKit_OBJCCFLAGS = -DUSE_LLVM `llvm-config --cxxflags` $(ToiletKit_OBJCFLAGS) +ToiletKit_OBJCC_FILES += MLKLLVMCompiler.mm +ToiletKit_OBJCFLAGS += -DUSE_LLVM -DLLVM_MAJOR_VERSION=`llvm-config --version | cut -f 1 -d.` -DLLVM_MINOR_VERSION=`llvm-config --version | cut -f 2 -d. | sed s/svn//` +ToiletKit_OBJCCFLAGS += `llvm-config --cxxflags` $(ToiletKit_OBJCFLAGS) ToiletKit_LDFLAGS += `llvm-config --ldflags` `llvm-config --libs backend engine linker codegen transformutils scalaropts analysis ipo` endif -- cgit v1.2.3