summaryrefslogtreecommitdiff
path: root/x11/libFS
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2007-07-02 12:32:19 +0000
committerjoerg <joerg@pkgsrc.org>2007-07-02 12:32:19 +0000
commit66c975189b70c79abe244148dd735f5eb9ef1afe (patch)
treed2e20088f1aaa3bc2779d0015cc8767c632ddfb5 /x11/libFS
parent518aebb3eb4411948fe21169de583ea125f097d5 (diff)
downloadpkgsrc-66c975189b70c79abe244148dd735f5eb9ef1afe.tar.gz
When cross-compiling configure can't detect automatically
whether malloc(0) != NULL. Tell it that on NetBSD it is always non-NULL.
Diffstat (limited to 'x11/libFS')
-rw-r--r--x11/libFS/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/x11/libFS/Makefile b/x11/libFS/Makefile
index aac8860a37c..a27727f239b 100644
--- a/x11/libFS/Makefile
+++ b/x11/libFS/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2007/01/05 12:14:44 rillig Exp $
+# $NetBSD: Makefile,v 1.3 2007/07/02 12:32:19 joerg Exp $
#
DISTNAME= libFS-1.0.0
@@ -19,6 +19,12 @@ USE_TOOLS+= pkg-config
PKGCONFIG_OVERRIDE+= libfs.pc.in
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "NetBSD"
+CONFIGURE_ARGS+= --disable-malloc0returnsnull
+.endif
+
.include "../../x11/fontsproto/buildlink3.mk"
.include "../../x11/xproto/buildlink3.mk"
.include "../../x11/xtrans/buildlink3.mk"