From a4923688e13a0968d23092a340ccbf1679af0305 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 19 Nov 2023 11:43:17 +0200 Subject: gnu: libxscrnsaver: Fix cross-compiling. * gnu/packages/xorg.scm (libxscrnsaver)[arguments]: When cross-compiling add configure-flag to skip a configure test which can't run when cross-compiling. Change-Id: If6ba64dfae28d3db220e91ffcbbaf6108fed9ef9 --- gnu/packages/xorg.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gnu') diff --git a/gnu/packages/xorg.scm b/gnu/packages/xorg.scm index 87c64080a4..c3e806f6e6 100644 --- a/gnu/packages/xorg.scm +++ b/gnu/packages/xorg.scm @@ -1498,7 +1498,11 @@ treat it as part of their software base when porting.") "1zi0r6mqa1g0hhsp02cdsjcxmsbipiv0v65c1h4pl84fydcjikbm")))) (build-system gnu-build-system) (arguments - '(#:configure-flags '("--disable-static"))) + `(#:configure-flags '("--disable-static" + ;; This fixes cross compiling. + ,@(if (%current-target-system) + '("--enable-malloc0returnsnull=yes") + '())))) (propagated-inputs (list libx11 libxext xorgproto)) (native-inputs -- cgit v1.2.3