summaryrefslogtreecommitdiff
path: root/lang/libLLVM34
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2015-04-26 13:08:38 +0000
committertnn <tnn@pkgsrc.org>2015-04-26 13:08:38 +0000
commited8ad714d3b0dc7afde2b457a17cee77a8219f39 (patch)
treeba916e4174f3e3746b3e0add1edcb01556138e5f /lang/libLLVM34
parent2b1335e16825b4c8fb0f6af17e43e8b79c565199 (diff)
downloadpkgsrc-ed8ad714d3b0dc7afde2b457a17cee77a8219f39.tar.gz
Use full paths to archive files instead of -lfoo to avoid wrapper reordering
when linking a shared library out of .a files. This is what other packages that use -Wl,--whole-archive seem to do. This works with and without cwrappers. XXX someone please apply similar fixes for Darwin and SunOS if necessary
Diffstat (limited to 'lang/libLLVM34')
-rw-r--r--lang/libLLVM34/distinfo4
-rw-r--r--lang/libLLVM34/patches/patch-tools_llvm-shlib_Makefile8
2 files changed, 8 insertions, 4 deletions
diff --git a/lang/libLLVM34/distinfo b/lang/libLLVM34/distinfo
index 43e2cde4e22..e488e0481d6 100644
--- a/lang/libLLVM34/distinfo
+++ b/lang/libLLVM34/distinfo
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.2 2015/04/06 17:25:05 tnn Exp $
+$NetBSD: distinfo,v 1.3 2015/04/26 13:08:38 tnn Exp $
SHA1 (llvm-3.4.2.src.tar.gz) = c5287384d0b95ecb0fd7f024be2cdfb60cd94bc9
RMD160 (llvm-3.4.2.src.tar.gz) = 5fab44850977afccee34b21c6d339bc8dea21fce
Size (llvm-3.4.2.src.tar.gz) = 15938155 bytes
-SHA1 (patch-tools_llvm-shlib_Makefile) = 90d0e31e486733b0d863b4b6018461ff4f7cff53
+SHA1 (patch-tools_llvm-shlib_Makefile) = 84f1c836fbecaf914a475b59077a627be64f7d05
SHA1 (patch-unittests_ExecutionEngine_MCJIT_Makefile) = 468ce096e5f312638923541ecc773435b3244407
diff --git a/lang/libLLVM34/patches/patch-tools_llvm-shlib_Makefile b/lang/libLLVM34/patches/patch-tools_llvm-shlib_Makefile
index 3fc27485df8..7cb194d89f1 100644
--- a/lang/libLLVM34/patches/patch-tools_llvm-shlib_Makefile
+++ b/lang/libLLVM34/patches/patch-tools_llvm-shlib_Makefile
@@ -1,4 +1,7 @@
-$NetBSD: patch-tools_llvm-shlib_Makefile,v 1.1 2015/04/06 17:25:05 tnn Exp $
+$NetBSD: patch-tools_llvm-shlib_Makefile,v 1.2 2015/04/26 13:08:38 tnn Exp $
+
+Add NetBSD support.
+Use full paths to archive files instead of -lfoo to avoid wrapper reordering.
--- tools/llvm-shlib/Makefile.orig 2014-05-15 00:15:27.000000000 +0000
+++ tools/llvm-shlib/Makefile
@@ -9,7 +12,8 @@ $NetBSD: patch-tools_llvm-shlib_Makefile,v 1.1 2015/04/06 17:25:05 tnn Exp $
-ifeq ($(HOST_OS), $(filter $(HOST_OS), DragonFly Linux FreeBSD GNU/kFreeBSD OpenBSD GNU Bitrig))
+ifeq ($(HOST_OS), $(filter $(HOST_OS), DragonFly Linux FreeBSD GNU/kFreeBSD NetBSD OpenBSD GNU Bitrig))
# Include everything from the .a's into the shared library.
- LLVMLibsOptions := -Wl,--whole-archive $(LLVMLibsOptions) \
+- LLVMLibsOptions := -Wl,--whole-archive $(LLVMLibsOptions) \
++ LLVMLibsOptions := -Wl,--whole-archive $(LLVMLibsPaths) \
-Wl,--no-whole-archive
endif