search for: foo_ldadd

Displaying 2 results from an estimated 2 matches for "foo_ldadd".

2009 May 08
0
[LLVMdev] Automake and llvm-config
...elong in `mylang_LDFLAGS You can use AC_SUBST in configure.ac to set the flags at configure time. I use something like this: AC_SUBST(LLVM_CPPFLAGS, $(llvm-config --cppflags)) AC_SUBST(LLVM_LDADD, $(llvm-config --ldflags --libs core jit native | tr '\n' ' ')) and in Makefile.am: foo_LDADD = $(LLVM_LDADD) ... ... Regards, Julian v. Bock
2009 May 08
5
[LLVMdev] Automake and llvm-config
Hello, I'm using autotools to build my little lang. So I want to have something like this in my Makefile.am: mylang_SOURCES = mylang.cpp mylang_LDADD = mylib.a `llvm-config --cppflags --ldflags --libs core jit native ipo` But automake complains: tools/Makefile.am:8: linker flags such as `--cppflags' belong in `mylang_LDFLAGS I tried different workarounds but nothing helps :( The only