pkgsrc-WIP-changes archive

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

llvm-netbsd: Cherry pick patch from upstream review



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Sat Jun 9 00:30:41 2018 +0200
Changeset:	f2ae9e38cb9bee4ffe9e395ea084eb540bccf3e1

Modified Files:
	llvm-netbsd/distinfo
Added Files:
	llvm-netbsd/patches/patch-cmake_modules_AddLLVM.cmake

Log Message:
llvm-netbsd: Cherry pick patch from upstream review

Disable ENABLE_EXPORTS for NetBSD static linking

https://reviews.llvm.org/D47719

Patch done by Yang Zheng

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=f2ae9e38cb9bee4ffe9e395ea084eb540bccf3e1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 llvm-netbsd/distinfo                                  |  1 +
 llvm-netbsd/patches/patch-cmake_modules_AddLLVM.cmake | 14 ++++++++++++++
 2 files changed, 15 insertions(+)

diffs:
diff --git a/llvm-netbsd/distinfo b/llvm-netbsd/distinfo
index 7d09f39941..38f15ac484 100644
--- a/llvm-netbsd/distinfo
+++ b/llvm-netbsd/distinfo
@@ -1,5 +1,6 @@
 $NetBSD$
 
 SHA1 (patch-cmake_config-ix.cmake) = 55f484948dfb3293917ede3144d7c83f78c555b3
+SHA1 (patch-cmake_modules_AddLLVM.cmake) = 8b3f8fb7377f741796f1b427b6ef5f830059a8f9
 SHA1 (patch-lib_Transforms_Instrumentation_AddressSanitizer.cpp) = 31d2936ccbab17067faf4f3f1695d1002022eb56
 SHA1 (patch-lib_Transforms_Instrumentation_InstrProfiling.cpp) = 653876deaaecb4aff8fd052d45da7c6516e876fc
diff --git a/llvm-netbsd/patches/patch-cmake_modules_AddLLVM.cmake b/llvm-netbsd/patches/patch-cmake_modules_AddLLVM.cmake
new file mode 100644
index 0000000000..858fc4f499
--- /dev/null
+++ b/llvm-netbsd/patches/patch-cmake_modules_AddLLVM.cmake
@@ -0,0 +1,14 @@
+$NetBSD$
+
+--- cmake/modules/AddLLVM.cmake.orig	2018-06-07 17:17:28.000000000 +0000
++++ cmake/modules/AddLLVM.cmake
+@@ -774,6 +774,9 @@ macro(add_llvm_executable name)
+ endmacro(add_llvm_executable name)
+ 
+ function(export_executable_symbols target)
++  if (LLVM_BUILD_STATIC AND ${CMAKE_SYSTEM_NAME} MATCHES "NetBSD")
++    return()
++  endif()
+   if (LLVM_EXPORTED_SYMBOL_FILE)
+     # The symbol file should contain the symbols we want the executable to
+     # export


Home | Main Index | Thread Index | Old Index