[LLVMdev] Automake and llvm-config

Andrii Vasyliev andrii.vasyliev at gmail.com
Fri May 8 01:40:12 PDT 2009


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 way I found is to copy llvm-config's output directly to
Makefile.am which
is non-portable.
So actually the question is how to use backticks in Makefile.am, but I
posted it here
because I hope everybody has already solved the problem :)


More information about the llvm-dev mailing list