pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/libLLVM libLLVM: Darwin rpath fix



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3282676481ee
branches:  trunk
changeset: 390835:3282676481ee
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Sun Jan 27 00:07:32 2019 +0000

description:
libLLVM: Darwin rpath fix

diffstat:

 lang/libLLVM/distinfo                                  |   4 ++--
 lang/libLLVM/patches/patch-cmake_modules_AddLLVM.cmake |  12 +++++++++++-
 2 files changed, 13 insertions(+), 3 deletions(-)

diffs (45 lines):

diff -r 5e00a2eb4a8d -r 3282676481ee lang/libLLVM/distinfo
--- a/lang/libLLVM/distinfo     Sat Jan 26 23:47:43 2019 +0000
+++ b/lang/libLLVM/distinfo     Sun Jan 27 00:07:32 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.14 2019/01/26 21:44:34 tnn Exp $
+$NetBSD: distinfo,v 1.15 2019/01/27 00:07:32 tnn Exp $
 
 SHA1 (llvm-7.0.1.src.tar.xz) = f97632fcc3186eb0d396492ef8acfc807648580f
 RMD160 (llvm-7.0.1.src.tar.xz) = dae96c6f85afb60e73564dc40d02171d01ffdb8f
@@ -6,7 +6,7 @@
 Size (llvm-7.0.1.src.tar.xz) = 28311056 bytes
 SHA1 (patch-CMakeLists.txt) = af0dc7f54e5e11c481f78ffafc9a6833e4469f32
 SHA1 (patch-cmake_config-ix.cmake) = a345420169e4066e22d28ca6ad10840e83ccfa76
-SHA1 (patch-cmake_modules_AddLLVM.cmake) = a580de70bc6d6e2cc6f058ac486c4fcbf8dc9e2b
+SHA1 (patch-cmake_modules_AddLLVM.cmake) = e2f84881d23a5c3036acaec97c19480944968cc1
 SHA1 (patch-cmake_modules_CMakeLists.txt) = 69514dafb36794eb6923a39ef219bdc7b09c37ee
 SHA1 (patch-cmake_modules_CheckAtomic.cmake) = 51e4fdf3bc24b50fc4d4bfa1ec5ba6c82ef946b4
 SHA1 (patch-cmake_modules_HandleLLVMOptions.cmake) = 271e6f5a8cebf8162c4e3b758e96f451b434269b
diff -r 5e00a2eb4a8d -r 3282676481ee lang/libLLVM/patches/patch-cmake_modules_AddLLVM.cmake
--- a/lang/libLLVM/patches/patch-cmake_modules_AddLLVM.cmake    Sat Jan 26 23:47:43 2019 +0000
+++ b/lang/libLLVM/patches/patch-cmake_modules_AddLLVM.cmake    Sun Jan 27 00:07:32 2019 +0000
@@ -1,8 +1,9 @@
-$NetBSD: patch-cmake_modules_AddLLVM.cmake,v 1.7 2019/01/26 21:17:20 tnn Exp $
+$NetBSD: patch-cmake_modules_AddLLVM.cmake,v 1.8 2019/01/27 00:07:32 tnn Exp $
 
 Disable library install rules. Handled manually.
 Make sure llvm-config goes in libexec/libLLVM to avoid conflict.
 Don't use non-portable -z discard-unused on SunOS.
+Don't use relative @rpath in llvm-config on Darwin.
 
 --- cmake/modules/AddLLVM.cmake.orig   2018-08-01 07:51:55.000000000 +0000
 +++ cmake/modules/AddLLVM.cmake
@@ -48,3 +49,12 @@
                COMPONENT ${name})
  
        if (NOT CMAKE_CONFIGURATION_TYPES)
+@@ -1632,7 +1620,7 @@ function(llvm_setup_rpath name)
+   endif()
+ 
+   if (APPLE)
+-    set(_install_name_dir INSTALL_NAME_DIR "@rpath")
++    set(_install_name_dir INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib/libLLVM")
+     set(_install_rpath "@loader_path/../lib" ${extra_libdir})
+   elseif(UNIX)
+     set(_install_rpath "\$ORIGIN/../lib${LLVM_LIBDIR_SUFFIX}" ${extra_libdir})



Home | Main Index | Thread Index | Old Index