summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkg_install/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgtools/pkg_install/Makefile b/pkgtools/pkg_install/Makefile
index 5266113e0d0..354d5cb8296 100644
--- a/pkgtools/pkg_install/Makefile
+++ b/pkgtools/pkg_install/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.190 2013/02/06 23:23:29 jperkin Exp $
+# $NetBSD: Makefile,v 1.191 2013/02/10 12:43:19 obache Exp $
# Notes to package maintainers:
#
@@ -135,6 +135,10 @@ LIBS+= ${LIBARCHIVE_LIBS:sh}
CONFIG_GUESS_OVERRIDE+= ${WRKDIR}/libarchive/build/autoconf/config.guess
CONFIG_SUB_OVERRIDE+= ${WRKDIR}/libarchive/build/autoconf/config.sub
+. if ${OPSYS} == "CYGWIN"
+CPPFLAGS+= -DLIBARCHIVE_STATIC
+. endif
+
. if ${OPSYS} == "Darwin"
# Make sure that the linker used our static library instead of the
# (outdated) dynamic library "/usr/lib/libarchive.dylib".