summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_install
diff options
context:
space:
mode:
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