]> granicus.if.org Git - llvm/commitdiff
Fix rpath for MacOS/iOS
authorHaibo Huang <hhb@google.com>
Fri, 9 Aug 2019 06:05:32 +0000 (06:05 +0000)
committerHaibo Huang <hhb@google.com>
Fri, 9 Aug 2019 06:05:32 +0000 (06:05 +0000)
Summary: libs can be installed to ../lib64.

Subscribers: mgorny, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D65972

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368398 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/modules/AddLLVM.cmake

index a42c55e79f5a68452096d0f20e4e8d0428fcb126..717ce8ff168406c681b5033a124f9ff0c7916550 100644 (file)
@@ -1735,7 +1735,7 @@ function(llvm_setup_rpath name)
 
   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)")