[Orc][Kaleidoscope] Fix the orc/kaleidoscope tutorials on linux.
[oota-llvm.git] / examples / Kaleidoscope / Orc / lazy_irgen / Makefile
index e14cce2ba36af3cbddce42621f0a3e858ecb509c..5536314f2a30906c750f6a6d74c0d4c71417df01 100644 (file)
@@ -6,10 +6,11 @@ else
        CXX := clang++
 endif
 
-LLVM_CXXFLAGS := $(shell llvm-config --cppflags --ldflags --system-libs --libs core orcjit native)
+LLVM_CXXFLAGS := $(shell llvm-config --cxxflags)
+LLVM_LDFLAGS := $(shell llvm-config  --ldflags --system-libs --libs core orcjit native)
 
 toy: toy.cpp
-       $(CXX) $(LLVM_CXXFLAGS) -Wall -std=c++14 -g -O0 -rdynamic -fno-rtti -o toy toy.cpp
+       $(CXX) $(LLVM_CXXFLAGS) -Wall -std=c++11 -g -O0 -rdynamic -fno-rtti -o toy toy.cpp $(LLVM_LDFLAGS)
 
 .PHONY: clean
 clean: