[LLVMbugs] [PATCH] Remove useless workaround from llvm-config
emk.lists at gmail.com
Fri Mar 24 05:02:28 PST 2006
On Mar 24, 2006, at 3:08 AM, Reid Spencer wrote:
> It allows you to specify, in a Makefile:
> LLVMLIBS := config --libs <components>
> which invokes 'llvm-config --libs <components>' to derive the library
> names that should be linked against. The problem is: it doesn't work
> for even something like Fibonacci. Could you apply this patch to
Unfortunately, I don't have time to resync with CVS this morning and
do a fresh build. :-( Maybe tonight.
In the meantime, some suggestions:
1) You might want to try --libnames instead of --libs. This will
give you bare library names suitable for in-tree linking.
2) If you're missing components, try "llvm-config --components" to
get a list. The old "JIT" magic corresponds to "--libnames engine
bcreader scalaropts" in the new system.
3) You'll need to conditionalize anything that uses llvm-config
using "ifeq ($(HAVE_PERL),1)" unless you're prepared to add Perl as
an official dependency (which might not go down well with the GCC
Let me know if you have any trouble, and I'll try to resync soon.
More information about the llvm-bugs