summaryrefslogtreecommitdiff
path: root/x11/libXp
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2007-07-27 20:05:24 +0000
committerjoerg <joerg@pkgsrc.org>2007-07-27 20:05:24 +0000
commit7a3ae3294dadabb82c0f00c2020897a98c10d082 (patch)
treeff770c04f4a3313d8cf5b3662b15fc94588d4d0a /x11/libXp
parent4dde9bc3a44cb6e34eb6d2e542066ffe51eead7f (diff)
downloadpkgsrc-7a3ae3294dadabb82c0f00c2020897a98c10d082.tar.gz
For cross-compilation, inform configure that malloc(0) != NULL
on NetBSD under normal circumstances.
Diffstat (limited to 'x11/libXp')
-rw-r--r--x11/libXp/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/x11/libXp/Makefile b/x11/libXp/Makefile
index eab86fad627..6fe58682ccf 100644
--- a/x11/libXp/Makefile
+++ b/x11/libXp/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2006/11/03 21:01:49 joerg Exp $
+# $NetBSD: Makefile,v 1.2 2007/07/27 20:05:24 joerg Exp $
#
DISTNAME= libXp-1.0.0
@@ -19,6 +19,12 @@ GNU_CONFIGURE= yes
CONFIGURE_ENV+= LIB_MAN_SUFFIX=3
PKGCONFIG_OVERRIDE+= xp.pc.in
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "NetBSD"
+CONFIGURE_ARGS+= --disable-malloc0returnsnull
+.endif
+
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/printproto/buildlink3.mk"