diff options
author | obache <obache@pkgsrc.org> | 2013-02-10 12:43:19 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2013-02-10 12:43:19 +0000 |
commit | 5ae60ba03c1794ad755620c7bf3656048fdfa0b9 (patch) | |
tree | d3c2cadee3a10787cff47ba68c2d67ae91a2d433 /pkgtools | |
parent | c96e577cea0943d4a36c985e1ef8f4ad17adf788 (diff) | |
download | pkgsrc-5ae60ba03c1794ad755620c7bf3656048fdfa0b9.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/Makefile | 6 |
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". |