summary refs log tree commit diff
path: root/gnu/packages/linux.scm
diff options
context:
space:
mode:
authorMathieu Othacehe <m.othacehe@gmail.com>2019-07-08 14:12:32 +0200
committerMathieu Othacehe <m.othacehe@gmail.com>2019-09-24 08:14:13 +0200
commiteff633257cc191d33b93cb1ada6ef34daa969c00 (patch)
treec570cb37438bbe32706d1c53816079b12bf88e39 /gnu/packages/linux.scm
parentf8dae88c1e5808394aca8a45a7433d60ee1b71bb (diff)
downloadguix-eff633257cc191d33b93cb1ada6ef34daa969c00.tar.gz
gnu: lvm2: Fix cross-compilation.
* gnu/packages/linux.scm (lvm2)[arguments]: Add cross-compilation specific
configure-flags.
Diffstat (limited to 'gnu/packages/linux.scm')
-rw-r--r--gnu/packages/linux.scm9
1 files changed, 7 insertions, 2 deletions
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 32b0cd009d..7ac5a771c8 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -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))