[PATCH] D65972: Fix rpath for MacOS
Haibo Huang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 8 13:48:54 PDT 2019
hhb created this revision.
Herald added subscribers: llvm-commits, mgorny.
Herald added a project: LLVM.
libs can be installed to ../lib64.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D65972
Files:
llvm/cmake/modules/AddLLVM.cmake
Index: llvm/cmake/modules/AddLLVM.cmake
===================================================================
--- llvm/cmake/modules/AddLLVM.cmake
+++ llvm/cmake/modules/AddLLVM.cmake
@@ -1735,7 +1735,7 @@
if (APPLE)
set(_install_name_dir INSTALL_NAME_DIR "@rpath")
- set(_install_rpath "@loader_path/../lib" ${extra_libdir})
+ set(_install_rpath "@loader_path/../lib${LLVM_LIBDIR_SUFFIX}" ${extra_libdir})
elseif(UNIX)
set(_install_rpath "\$ORIGIN/../lib${LLVM_LIBDIR_SUFFIX}" ${extra_libdir})
if(${CMAKE_SYSTEM_NAME} MATCHES "(FreeBSD|DragonFly)")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65972.214225.patch
Type: text/x-patch
Size: 577 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190808/d115a646/attachment.bin>
More information about the llvm-commits
mailing list