pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/libLLVM Fix library build on SunOS.
details: https://anonhg.NetBSD.org/pkgsrc/rev/06182c7eb717
branches: trunk
changeset: 359400:06182c7eb717
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Thu Mar 09 12:45:56 2017 +0000
description:
Fix library build on SunOS.
diffstat:
lang/libLLVM/distinfo | 5 ++-
lang/libLLVM/patches/patch-lib_Support_Unix_Program.inc | 16 ++++++++++++++
lang/libLLVM/patches/patch-tools_llvm-shlib_CMakeLists.txt | 12 ++++++----
3 files changed, 26 insertions(+), 7 deletions(-)
diffs (65 lines):
diff -r 8dba07fb20fe -r 06182c7eb717 lang/libLLVM/distinfo
--- a/lang/libLLVM/distinfo Thu Mar 09 11:52:37 2017 +0000
+++ b/lang/libLLVM/distinfo Thu Mar 09 12:45:56 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.7 2017/01/05 11:54:32 adam Exp $
+$NetBSD: distinfo,v 1.8 2017/03/09 12:45:56 jperkin Exp $
SHA1 (llvm-3.9.1.src.tar.xz) = ce801cf456b8dacd565ce8df8288b4d90e7317ff
RMD160 (llvm-3.9.1.src.tar.xz) = b0a3c68cfec83a2b4dad6922316b71c0dc25c40a
@@ -10,5 +10,6 @@
SHA1 (patch-cmake_modules_HandleLLVMOptions.cmake) = 271e6f5a8cebf8162c4e3b758e96f451b434269b
SHA1 (patch-cmake_modules_TableGen.cmake) = d548208577f45fbb6c8f7b43548c399cc63c7887
SHA1 (patch-include_llvm_Support_Host.h) = ad6ac520f15bba96ab887c962fb717e22aaee7bf
+SHA1 (patch-lib_Support_Unix_Program.inc) = 49f09e05858243ca57f14b1fdb2fec49c935dfeb
SHA1 (patch-tools_llvm-config_llvm-config.cpp) = 44835bfcd2bddc16e0b93628fafb627889091f85
-SHA1 (patch-tools_llvm-shlib_CMakeLists.txt) = 8f538db138219c2a3ce394b7a3c21f277d5544dd
+SHA1 (patch-tools_llvm-shlib_CMakeLists.txt) = 8faddae24e937ce0b60a7b6a69370c56b9ff7fe3
diff -r 8dba07fb20fe -r 06182c7eb717 lang/libLLVM/patches/patch-lib_Support_Unix_Program.inc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/libLLVM/patches/patch-lib_Support_Unix_Program.inc Thu Mar 09 12:45:56 2017 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-lib_Support_Unix_Program.inc,v 1.1 2017/03/09 12:45:56 jperkin Exp $
+
+Remove bogus redefine.
+
+--- lib/Support/Unix/Program.inc.orig 2016-04-05 20:45:04.000000000 +0000
++++ lib/Support/Unix/Program.inc
+@@ -40,9 +40,6 @@
+ #include <unistd.h>
+ #endif
+ #ifdef HAVE_POSIX_SPAWN
+-#ifdef __sun__
+-#define _RESTRICT_KYWD
+-#endif
+ #include <spawn.h>
+
+ #if defined(__APPLE__)
diff -r 8dba07fb20fe -r 06182c7eb717 lang/libLLVM/patches/patch-tools_llvm-shlib_CMakeLists.txt
--- a/lang/libLLVM/patches/patch-tools_llvm-shlib_CMakeLists.txt Thu Mar 09 11:52:37 2017 +0000
+++ b/lang/libLLVM/patches/patch-tools_llvm-shlib_CMakeLists.txt Thu Mar 09 12:45:56 2017 +0000
@@ -1,10 +1,10 @@
-$NetBSD: patch-tools_llvm-shlib_CMakeLists.txt,v 1.1 2016/03/08 21:06:50 tnn Exp $
+$NetBSD: patch-tools_llvm-shlib_CMakeLists.txt,v 1.2 2017/03/09 12:45:56 jperkin Exp $
-Use the Linux style linking everywhere except Darwin.
+Use the Linux style linking everywhere except Darwin and SunOS.
---- ./tools/llvm-shlib/CMakeLists.txt.orig 2015-11-04 23:11:12.000000000 +0000
-+++ ./tools/llvm-shlib/CMakeLists.txt
-@@ -41,11 +41,10 @@ endif()
+--- tools/llvm-shlib/CMakeLists.txt.orig 2016-05-26 04:35:35.000000000 +0000
++++ tools/llvm-shlib/CMakeLists.txt
+@@ -39,11 +39,12 @@ endif()
add_llvm_library(LLVM SHARED DISABLE_LLVM_LINK_LLVM_DYLIB SONAME ${SOURCES})
list(REMOVE_DUPLICATES LIB_NAMES)
@@ -14,6 +14,8 @@
-elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
+if("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
set(LIB_NAMES -Wl,-all_load ${LIB_NAMES})
++elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "SunOS")
++ set(LIB_NAMES -Wl,-Bsymbolic -Wl,-z -Wl,allextract ${LIB_NAMES} -Wl,-z -Wl,defaultextract)
+else()
+ set(LIB_NAMES -Wl,--whole-archive ${LIB_NAMES} -Wl,--no-whole-archive)
endif()
Home |
Main Index |
Thread Index |
Old Index