summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_install/Makefile
diff options
context:
space:
mode:
authortron <tron>2010-04-15 22:25:11 +0000
committertron <tron>2010-04-15 22:25:11 +0000
commit2b6c585e9d24d353f40b239a81deb2de4a57f84e (patch)
tree7cda0b67ba7b0b7b28ec0e6a2bef85279d82823e /pkgtools/pkg_install/Makefile
parent6171a9b08610ecbf8147cbb9cb25a72fa894fb74 (diff)
downloadpkgsrc-2b6c585e9d24d353f40b239a81deb2de4a57f84e.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/Makefile')
-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