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
patch-llvm-execpath.txt
(705 bytes, text/plain)