[llvm-dev] [CMake] Hardcoded rpath?
Alex Wang via llvm-dev
llvm-dev at lists.llvm.org
Mon Jan 4 06:07:34 PST 2016
Ping?
> On Dec 26, 2015, at 12:59 PM, Alex Wang <aw1621107 at gmail.com> wrote:
>
> I'm looking at an issue for Homebrew (OS X package manager) where the compiled libc++ tries to load libc++abi at "@rpath/libc++abi.1.dylib", resulting in a dyld error. The issue can be found at https://github.com/Homebrew/homebrew/issues/47149
>
> From what I can tell, this is a result of lines 561-564 of the CMakeLists.txt in the main LLVM repo:
>
> set(CMAKE_BUILD_WITH_INSTALL_RPATH ON)
> if (APPLE)
> set(CMAKE_INSTALL_NAME_DIR "@rpath")
> set(CMAKE_INSTALL_RPATH "@executable_path/../lib")
>
> Is there a reason these variables are hardcoded?
>
> -Alex
More information about the llvm-dev
mailing list