summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_install
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2010-04-15 22:25:11 +0000
committertron <tron@pkgsrc.org>2010-04-15 22:25:11 +0000
commiteb4857278f2016f7f086f8facb90517d7cda93c6 (patch)
tree7cda0b67ba7b0b7b28ec0e6a2bef85279d82823e /pkgtools/pkg_install
parentf65bbc9361f8059d3e4de7da2ac9c5f37755cf27 (diff)
downloadpkgsrc-eb4857278f2016f7f086f8facb90517d7cda93c6.tar.gz
Link using the "-search_paths_first" option under Mac OS X to make
sure that the linker uses our static "libarchive.a" instead of the outdated dynamic library "/usr/lib/libarchive.dylib".
Diffstat (limited to 'pkgtools/pkg_install')
-rw-r--r--pkgtools/pkg_install/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgtools/pkg_install/Makefile b/pkgtools/pkg_install/Makefile
index e104062de04..3e15d4f3208 100644
--- a/pkgtools/pkg_install/Makefile
+++ b/pkgtools/pkg_install/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.177 2010/04/14 18:24:58 joerg Exp $
+# $NetBSD: Makefile,v 1.178 2010/04/15 22:25:11 tron Exp $
# Notes to package maintainers:
#
@@ -124,6 +124,12 @@ LDFLAGS+= -L${WRKDIR}/libarchive/.libs
CONFIG_GUESS_OVERRIDE+= ${WRKDIR}/libarchive/build/autoconf/config.guess
CONFIG_SUB_OVERRIDE+= ${WRKDIR}/libarchive/build/autoconf/config.sub
+. if ${OPSYS} == "Darwin"
+# Make sure that the linker used our static library instead of the
+# (outdated) dynamic library "/usr/lib/libarchive.dylib".
+LDFLAGS+= -Wl,-search_paths_first
+. endif
+
# Hack to make sure that the libarchive version is replaced
pre-configure: config-guess-override config-sub-override
.endif