summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrichard <richard@pkgsrc.org>2015-08-30 10:54:11 +0000
committerrichard <richard@pkgsrc.org>2015-08-30 10:54:11 +0000
commit687b3851855b2730bb35ef77695aa04aa1436782 (patch)
treef0e2e0ab0b2a45d1e0e14e6f272ee7a0658072e9
parent40287c101c432edfda7bea937521fe2698b3c8c8 (diff)
downloadpkgsrc-687b3851855b2730bb35ef77695aa04aa1436782.tar.gz
use NO_DIVIDE only on i386 SunOS; bump PKGREVISION
-rw-r--r--devel/zlib/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/devel/zlib/Makefile b/devel/zlib/Makefile
index 933e19860a0..ac15b02eb0e 100644
--- a/devel/zlib/Makefile
+++ b/devel/zlib/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.52 2014/10/09 14:06:32 wiz Exp $
+# $NetBSD: Makefile,v 1.53 2015/08/30 10:54:11 richard Exp $
DISTNAME= zlib-1.2.8
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libpng/} \
http://zlib.net/
@@ -19,7 +19,12 @@ PKGCONFIG_OVERRIDE+= zlib.pc.in
CFLAGS+= ${CPPFLAGS}
LDFLAGS.Cygwin= -no-undefined
+.include "../../mk/bsd.prefs.mk"
+.if !empty(MACHINE_ARCH:Mi386)
+# use NO_DIVIDE for adler32 if processor does not do division in hardware
+# which avoids needing emulation provided by libgcc_s
CPPFLAGS.SunOS+= -DNO_DIVIDE
+.endif
LDFLAGS.SunOS+= -Wl,-zignore # avoid unused reference to libgcc_s.so
SUBST_CLASSES+= pc