diff options
author | tron <tron@pkgsrc.org> | 2010-04-15 22:25:11 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2010-04-15 22:25:11 +0000 |
commit | e91cb0e2b5b161dbd24812e59c27494dcd1577e9 (patch) | |
tree | 7cda0b67ba7b0b7b28ec0e6a2bef85279d82823e /pkgtools | |
parent | 13644abe5ded03353d3c739f605991450100cf49 (diff) | |
download | pkgsrc-e91cb0e2b5b161dbd24812e59c27494dcd1577e9.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')
-rw-r--r-- | pkgtools/pkg_install/Makefile | 8 |
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 |