[LLVMdev] Automake and llvm-config
gordonhenriksen at me.com
Fri May 8 03:01:57 PDT 2009
Can you use an intermediate variable?
TMP = `...`
mylang_LDADD = ... $TMP
On 2009-05-08, at 04:40, Andrii Vasyliev wrote:
> 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
> 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 :)
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
More information about the llvm-dev