[LLVMbugs] [Bug 3347] New: llvm-config 2.4 - libpsapi, libimagehlp in wrong order

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Jan 18 06:41:11 PST 2009


http://llvm.org/bugs/show_bug.cgi?id=3347

           Summary: llvm-config 2.4 - libpsapi, libimagehlp in wrong order
           Product: tools
           Version: 2.4
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-config
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: duncan at duncanpierce.org
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=2408)
 --> (http://llvm.org/bugs/attachment.cgi?id=2408)
Corrects order for --libs, may be wrong for --libnames, --libfiles

llvm-config --cxxflags --ldflags --libs core gives:

-I/include  -D_DEBUG  -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -O2
-fomit-frame-pointer  -Woverloaded-virtual
-L/lib  -lpsapi -limagehlp -lm
-lLLVMCore -lLLVMSupport -lLLVMSystem

The -lpsapi -limagehlp need to be at the end for ld to resolve all the symbols
correctly. (Probably the -lm too but I didn't experience problems with this).

A patch for llvm-config.in.in is attached which gets things working on MinGW
but it's not tested elsewhere.


-- 
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