[LLVMbugs] [Bug 8449] New: llvm-config lists system libs as part of --ldflags instead of --libs
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Oct 23 23:38:50 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=8449
Summary: llvm-config lists system libs as part of --ldflags
instead of --libs
Product: tools
Version: 2.8
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: llvm-config
AssignedTo: unassignedbugs at nondot.org
ReportedBy: jeberger at free.fr
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5653)
--> (http://llvm.org/bugs/attachment.cgi?id=5653)
Patch to llvm-config
On my system, "llvm-config --ldflags" gives "-L/usr/lib/llvm -lpthread -lffi
-ldl -lm" and "llvm-config --libs" only lists libraries from LLVM. This causes
problems because the usual way to link a program is to list the LDFLAGS before
the LIBS, but the GNU linker is sensitive to the order in which libraries are
given and needs the system libraries to be listed last.
In particular, this means that the example given in the llvm-config man page
will fail to compile.
The attached patch should fix the problem.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list