Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

[patch] On Mac OS libLLVM-2.9svn.dylib is linked to be used by tools only #6482

Closed Quuxplusone closed 5 years ago

Quuxplusone commented 14 years ago
Bugzilla Link PR8564
Status RESOLVED FIXED
Importance P enhancement
Reported by jerrry94087@yahoo.com
Reported on 2010-11-07 15:51:29 -0800
Last modified on 2018-11-19 10:40:30 -0800
Version trunk
Hardware Macintosh MacOS X
CC hammacher@cs.uni-saarland.de, llvm-bugs@lists.llvm.org, rnk@google.com
Fixed by commit(s)
Attachments patch-llvm-execpath.txt (705 bytes, text/plain)
Blocks
Blocked by
See also
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
Quuxplusone commented 13 years ago

Attached patch-llvm-execpath.txt (705 bytes, text/plain): Patch file

Quuxplusone commented 5 years ago

We've replaced the autoconf build system since this was filed. Please reopen the bug if you are still affected.