summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorobache <obache>2013-02-10 12:43:19 +0000
committerobache <obache>2013-02-10 12:43:19 +0000
commit7e715ad7dda3671fcc44a2b65cafdd60f7bc9b1f (patch)
treed3c2cadee3a10787cff47ba68c2d67ae91a2d433 /pkgtools
parent2853b2136dc463d878158c410fbdf8d12c37eb07 (diff)
downloadpkgsrc-7e715ad7dda3671fcc44a2b65cafdd60f7bc9b1f.tar.gz
As noted in libarchive/archive_entry.h, need to define LIBARCHIVE_STATIC
for Windows (Cygwin) to using static library.
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".