pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/wm/libWindowsWM Set harmless --enable-malloc0returnsnu...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d32eaba00a69
branches:  trunk
changeset: 646732:d32eaba00a69
user:      riastradh <riastradh%pkgsrc.org@localhost>
date:      Sat Feb 14 05:33:04 2015 +0000

description:
Set harmless --enable-malloc0returnsnull to fix cross-compile.

diffstat:

 wm/libWindowsWM/Makefile |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r d15d19e681b4 -r d32eaba00a69 wm/libWindowsWM/Makefile
--- a/wm/libWindowsWM/Makefile  Sat Feb 14 05:04:23 2015 +0000
+++ b/wm/libWindowsWM/Makefile  Sat Feb 14 05:33:04 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2013/06/16 23:06:10 asau Exp $
+# $NetBSD: Makefile,v 1.4 2015/02/14 05:33:04 riastradh Exp $
 
 DISTNAME=      libWindowsWM-1.0.1
 CATEGORIES=    wm x11
@@ -17,6 +17,14 @@
 
 PKGCONFIG_OVERRIDE+=   windowswm.pc.in
 
+.include "../../mk/bsd.prefs.mk"
+
+.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS])
+# No harm in enabling this; the only harm might come from disabling it
+# incorrectly.
+CONFIGURE_ARGS+=       --enable-malloc0returnsnull
+.endif
+
 .include "../../x11/xextproto/buildlink3.mk"
 .include "../../x11/libXext/buildlink3.mk"
 .include "../../x11/libX11/buildlink3.mk"



Home | Main Index | Thread Index | Old Index