summaryrefslogtreecommitdiff
path: root/wm
diff options
context:
space:
mode:
authorriastradh <riastradh@pkgsrc.org>2015-02-14 05:33:04 +0000
committerriastradh <riastradh@pkgsrc.org>2015-02-14 05:33:04 +0000
commit4a2b95cee47d69cdfd9242f51095ab3986b0797b (patch)
tree70972b81fc5fc8006da2f7afed481ebb36f491bb /wm
parentc12eee741568f0563e9412ebcd5e7d36c787b274 (diff)
downloadpkgsrc-4a2b95cee47d69cdfd9242f51095ab3986b0797b.tar.gz
Set harmless --enable-malloc0returnsnull to fix cross-compile.
Diffstat (limited to 'wm')
-rw-r--r--wm/libWindowsWM/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/wm/libWindowsWM/Makefile b/wm/libWindowsWM/Makefile
index d2f83a1e69a..557e6be597a 100644
--- a/wm/libWindowsWM/Makefile
+++ b/wm/libWindowsWM/Makefile
@@ -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 @@ USE_TOOLS+= gsed pkg-config
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"