summaryrefslogtreecommitdiff
path: root/src/ortho/llvm
diff options
context:
space:
mode:
authorTristan Gingold2015-05-21 21:51:04 +0200
committerTristan Gingold2015-05-21 21:51:04 +0200
commita2430c1aa08cfe58e7173c8950e2b5df32a91859 (patch)
treeab55827c6c39c7e9c00d714f1699e3f9d91327c9 /src/ortho/llvm
parent6b46ffa0752e8c84a06a0321add21b37041a3131 (diff)
downloadghdl-a2430c1aa08cfe58e7173c8950e2b5df32a91859.tar.gz
ghdl-a2430c1aa08cfe58e7173c8950e2b5df32a91859.tar.bz2
ghdl-a2430c1aa08cfe58e7173c8950e2b5df32a91859.zip
Use cxx compiler to link llvm executable.
Diffstat (limited to 'src/ortho/llvm')
-rw-r--r--src/ortho/llvm/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ortho/llvm/Makefile b/src/ortho/llvm/Makefile
index 0e20086..c52fa97 100644
--- a/src/ortho/llvm/Makefile
+++ b/src/ortho/llvm/Makefile
@@ -1,6 +1,6 @@
ortho_srcdir=..
GNAT_FLAGS=-gnaty3befhkmr -gnata -gnatf -gnatwael -gnat05
-CXX=clang++ --std=c++11
+CXX=clang++
LLVM_CONFIG=llvm-config
SED=sed
BE=llvm
@@ -10,7 +10,8 @@ all: $(ortho_exec)
$(ortho_exec): $(ortho_srcdir)/llvm/ortho_llvm.ads force llvm-cbindings.o
gnatmake -o $@ -aI$(ortho_srcdir)/llvm -aI$(ortho_srcdir) \
$(GNAT_FLAGS) ortho_code_main -bargs -E \
- -largs llvm-cbindings.o `$(LLVM_CONFIG) --ldflags --libs --system-libs` -lc++ #-static
+ -largs llvm-cbindings.o --LINK=$(CXX) \
+ `$(LLVM_CONFIG) --ldflags --libs --system-libs`
llvm-cbindings.o: $(ortho_srcdir)/llvm/llvm-cbindings.cpp
$(CXX) -c -I`$(LLVM_CONFIG) --includedir --cflags` -o $@ $<