[llvm-dev] [CMake] Hardcoded rpath?
Alex Wang via llvm-dev
llvm-dev at lists.llvm.org
Sat Dec 26 09:59:10 PST 2015
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