enabling clients to use rpath to find LLVM shared libraries on OS X
Bob Wilson
bob.wilson at apple.com
Mon Nov 4 16:38:47 PST 2013
Benjamin,
Your patch to use @rpath for various llvm dylibs on OS X, which Eric applied in svn r187641, is breaking LTO builds with Apple's linker. You won't see the problem unless you rebuild the linker with the @rpath-version of libLTO.dylib installed. But, if you do rebuild the linker, the linker will look for libLTO.dylib via the rpath instead of relative to itself, and since there is no rpath set up, the library cannot be found.
I'm not sure how to resolve this. Obviously the simplest solution would be to revert your change, at least for libLTO.dylib. Are you using libLTO.dylib for something that requires it to have the @rpath set?
--Bob
More information about the llvm-commits
mailing list