pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/x11/libXp For cross-compilation, inform configure that...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/168ce2764aff
branches:  trunk
changeset: 531271:168ce2764aff
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Jul 27 20:05:24 2007 +0000

description:
For cross-compilation, inform configure that malloc(0) != NULL
on NetBSD under normal circumstances.

diffstat:

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

diffs (22 lines):

diff -r f861d7eef338 -r 168ce2764aff x11/libXp/Makefile
--- a/x11/libXp/Makefile        Fri Jul 27 18:37:35 2007 +0000
+++ b/x11/libXp/Makefile        Fri Jul 27 20:05:24 2007 +0000
@@ -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 @@
 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"



Home | Main Index | Thread Index | Old Index