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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to