summaryrefslogtreecommitdiff
path: root/lang/rust
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2018-09-24 03:42:42 +0000
committerminskim <minskim@pkgsrc.org>2018-09-24 03:42:42 +0000
commit88406e6b981b0605f749a7233bf49b5ed9aac045 (patch)
treeb88cb0f6233e03d6fa264a10c2896ff8d2fabcf0 /lang/rust
parentb33659f43e3287785b099b33b82543050dc6ccb3 (diff)
downloadpkgsrc-88406e6b981b0605f749a7233bf49b5ed9aac045.tar.gz
lang/rust: Make llvm build on Darwin
Patch from lang/llvm.
Diffstat (limited to 'lang/rust')
-rw-r--r--lang/rust/distinfo4
-rw-r--r--lang/rust/patches/patch-src_llvm_cmake_modules_AddLLVM.cmake12
2 files changed, 13 insertions, 3 deletions
diff --git a/lang/rust/distinfo b/lang/rust/distinfo
index c098f692fc5..834cc9c29bf 100644
--- a/lang/rust/distinfo
+++ b/lang/rust/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.36 2018/09/14 10:04:43 jperkin Exp $
+$NetBSD: distinfo,v 1.37 2018/09/24 03:42:42 minskim Exp $
SHA1 (rust-1.28.0-i686-apple-darwin.tar.gz) = 85d947b4d260361f63f77e1f4921ac89bd849d78
RMD160 (rust-1.28.0-i686-apple-darwin.tar.gz) = 963abf1b0b5e2673c8e2d6c1b4d5a2d8ed9d8d2f
@@ -79,7 +79,7 @@ SHA1 (patch-src_liblibc_src_unix_solaris_mod.rs) = aeb7c22995e33c700ce3ea4336368
SHA1 (patch-src_libstd_build.rs) = 32dad8a474300f9f37bce8b92acca762cf8cc4ab
SHA1 (patch-src_libstd_sys_unix_thread.rs) = 46ef46365658e2f895bd3dde9c74f352890e9ccc
SHA1 (patch-src_llvm_CMakeLists.txt) = ffdf4337fdc84d8314c97c4e492e6b84244a99d1
-SHA1 (patch-src_llvm_cmake_modules_AddLLVM.cmake) = 166af9a52d4863b6d99f37b3cce7c154625f2a8b
+SHA1 (patch-src_llvm_cmake_modules_AddLLVM.cmake) = f0620ac62ecfb1d62d2dfa61b4c063d21c29b8f5
SHA1 (patch-src_llvm_include_llvm-c_DataTypes.h) = 432693204912e79059ee31e815ad1e24f3236374
SHA1 (patch-src_llvm_include_llvm_Analysis_ConstantFolding.h) = 861089ea7ec8985b9b9fce53ffadfa3e9eed4a72
SHA1 (patch-src_vendor_libc_src_unix_solaris_mod.rs) = 785263f25535c6644a674ca931e2591938b2d2f6
diff --git a/lang/rust/patches/patch-src_llvm_cmake_modules_AddLLVM.cmake b/lang/rust/patches/patch-src_llvm_cmake_modules_AddLLVM.cmake
index 78e8597aa85..cb36efeea27 100644
--- a/lang/rust/patches/patch-src_llvm_cmake_modules_AddLLVM.cmake
+++ b/lang/rust/patches/patch-src_llvm_cmake_modules_AddLLVM.cmake
@@ -1,6 +1,7 @@
-$NetBSD: patch-src_llvm_cmake_modules_AddLLVM.cmake,v 1.2 2018/09/14 10:04:43 jperkin Exp $
+$NetBSD: patch-src_llvm_cmake_modules_AddLLVM.cmake,v 1.3 2018/09/24 03:42:42 minskim Exp $
"-z discard-unused" is only supported by Oracle Solaris ld.
+On Darwin, use correct install-name for shared libraries.
--- src/llvm/cmake/modules/AddLLVM.cmake.orig 2018-08-01 16:32:37.000000000 +0000
+++ src/llvm/cmake/modules/AddLLVM.cmake
@@ -13,3 +14,12 @@ $NetBSD: patch-src_llvm_cmake_modules_AddLLVM.cmake,v 1.2 2018/09/14 10:04:43 jp
elseif(NOT WIN32 AND NOT LLVM_LINKER_IS_GOLD AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
# Object files are compiled with -ffunction-data-sections.
# Versions of bfd ld < 2.23.1 have a bug in --gc-sections that breaks
+@@ -1602,7 +1600,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")
+ set(_install_rpath "@loader_path/../lib" ${extra_libdir})
+ elseif(UNIX)
+ set(_install_rpath "\$ORIGIN/../lib${LLVM_LIBDIR_SUFFIX}" ${extra_libdir})