gnu: lvm2: Fix cross-compilation.

* gnu/packages/linux.scm (lvm2)[arguments]: Add cross-compilation specific
configure-flags.
This commit is contained in:
Mathieu Othacehe 2019-07-08 14:12:32 +02:00
parent f8dae88c1e
commit eff633257c
No known key found for this signature in database
GPG Key ID: 8354763531769CA6

View File

@ -2654,7 +2654,7 @@ time.")
(inputs
`(("udev" ,eudev)))
(arguments
'(#:phases
`(#:phases
(modify-phases %standard-phases
(add-after 'configure 'set-makefile-shell
(lambda _
@ -2689,7 +2689,12 @@ time.")
(assoc-ref %outputs "out")
"/lib,-rpath="
(assoc-ref %outputs "out")
"/lib/device-mapper"))
"/lib/device-mapper")
;; This is needed when cross-compiling.
,@(if (%current-target-system)
'("ac_cv_func_malloc_0_nonnull=yes"
"ac_cv_func_realloc_0_nonnull=yes")
'()))
;; The tests use 'mknod', which requires root access.
#:tests? #f))