[LLVMdev] Automake and llvm-config

Gordon Henriksen 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:

> 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 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 :)
>
> Thanks,
> Andrii
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list