summaryrefslogtreecommitdiff
path: root/gnu/packages/xorg.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2023-11-19 11:43:17 +0200
committerEfraim Flashner <efraim@flashner.co.il>2023-11-28 07:59:41 +0200
commita4923688e13a0968d23092a340ccbf1679af0305 (patch)
tree35fae1e153d080790ccae115a8ca5723c7d7db64 /gnu/packages/xorg.scm
parent0d84d3ff9f1a1b7d2ed5c200ba8b98e675378c41 (diff)
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
Diffstat (limited to 'gnu/packages/xorg.scm')
-rw-r--r--gnu/packages/xorg.scm6
1 files changed, 5 insertions, 1 deletions
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