[LLVMbugs] [Bug 8564] New: On Mac OS libLLVM-2.9svn.dylib is linked to be used by tools only

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Nov 7 13:51:30 PST 2010


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

           Summary: On Mac OS libLLVM-2.9svn.dylib is linked to be used by
                    tools only
           Product: libraries
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: System Library
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: jerrry94087 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu


I configured llvm with --prefix=/opt/local/llvm
But dylib is linked with -Wl,"@executable_path/../lib/libLLVM-2.9svn.dylib"
And the way how things are on Mac OS gcc option -L/opt/local/llvm/lib doesn't
override this path @executable_path/../lib/libLLVM-2.9svn.dylib encoded into
the library itself. So the resulting libLLVM-2.9svn.dylib is only usable by
LLVM tools from under /opt/local/llvm. Other executables linked against it fail
to find @executable_path/../lib/libLLVM-2.9svn.dylib.

Linker command should be modified: @executable_path/../lib/libLLVM-2.9svn.dylib
should be replaced with <path-from-configured-prefix>/lib/libLLVM-2.9svn.dylib

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