diff options
Diffstat (limited to 'src/ortho/llvm4-nodebug/Makefile')
-rw-r--r-- | src/ortho/llvm4-nodebug/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ortho/llvm4-nodebug/Makefile b/src/ortho/llvm4-nodebug/Makefile index 3f02d75ef..fd4ea044c 100644 --- a/src/ortho/llvm4-nodebug/Makefile +++ b/src/ortho/llvm4-nodebug/Makefile @@ -6,13 +6,17 @@ GNATMAKE=gnatmake SED=sed BE=llvm4-nodebug +LLVM_LDFLAGS=$(LLVM_CONFIG) --ldflags --libs --system-libs + all: $(ortho_exec) $(ortho_exec): $(ortho_srcdir)/llvm4-nodebug/ortho_llvm.ads force llvm-cbindings.o + @echo "llvm ldflags cmd: $(LLVM_LDFLAGS)" + @echo "llvm ldflags: `$(LLVM_LDFLAGS)`" $(GNATMAKE) -o $@ -aI$(ortho_srcdir)/llvm4-nodebug -aI$(ortho_srcdir) \ $(GNATFLAGS) ortho_code_main -bargs -E \ -largs llvm-cbindings.o --LINK=$(CXX) \ - $(LDFLAGS) `$(LLVM_CONFIG) --ldflags --libs --system-libs` + $(LDFLAGS) `$(LLVM_LDFLAGS)` llvm-cbindings.o: $(ortho_srcdir)/llvm4-nodebug/llvm-cbindings.cpp $(CXX) -c `$(LLVM_CONFIG) --cxxflags` -o $@ $< |