pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/libFS When cross-compiling configure can't detect ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/06d7a2914f75
branches:  trunk
changeset: 530598:06d7a2914f75
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Mon Jul 02 12:32:19 2007 +0000

description:
When cross-compiling configure can't detect automatically
whether malloc(0) != NULL. Tell it that on NetBSD it is
always non-NULL.

diffstat:

 x11/libFS/Makefile |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 15388a5bc7e2 -r 06d7a2914f75 x11/libFS/Makefile
--- a/x11/libFS/Makefile        Mon Jul 02 10:14:48 2007 +0000
+++ b/x11/libFS/Makefile        Mon Jul 02 12:32:19 2007 +0000
@@ -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 @@
 
 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"



Home | Main Index | Thread Index | Old Index