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


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

Reply via email to