gnu: libxt: Fix cross-compilation.
* gnu/packages/xorg.scm (libxt)[arguments]: Pass --disable-malloc0returnsnull configure flag when cross-compiling.
This commit is contained in:
parent
7681436bfd
commit
adf218e2e8
1 changed files with 9 additions and 4 deletions
|
@ -5411,10 +5411,15 @@ (define-public libxt
|
||||||
(outputs '("out"
|
(outputs '("out"
|
||||||
"doc")) ;2 MiB of man pages + XML
|
"doc")) ;2 MiB of man pages + XML
|
||||||
(arguments
|
(arguments
|
||||||
'(#:configure-flags (list (string-append "--mandir="
|
`(#:configure-flags
|
||||||
(assoc-ref %outputs "doc")
|
(list (string-append "--mandir="
|
||||||
"/share/man")
|
(assoc-ref %outputs "doc")
|
||||||
"--disable-static")))
|
"/share/man")
|
||||||
|
"--disable-static"
|
||||||
|
;; Disable zero malloc check that fails when cross-compiling.
|
||||||
|
,@(if (%current-target-system)
|
||||||
|
'("--disable-malloc0returnsnull")
|
||||||
|
'()))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
`(("libx11" ,libx11)
|
`(("libx11" ,libx11)
|
||||||
("libice" ,libice)
|
("libice" ,libice)
|
||||||
|
|
Loading…
Reference in a new issue