gnu: psmisc: Fix cross-compilation.
authorMathieu Othacehe <m.othacehe@gmail.com>
Mon, 16 Dec 2019 15:41:01 +0000 (16:41 +0100)
committerMathieu Othacehe <m.othacehe@gmail.com>
Mon, 16 Dec 2019 15:45:34 +0000 (16:45 +0100)
* gnu/packages/linux.scm (psmisc)[arguments]: Pass
ac_cv_func_malloc_0_nonnull=yes and ac_cv_func_realloc_0_nonnull=yes options
that are required when cross-compiling.

gnu/packages/linux.scm

index a062e2b..55a5ceb 100644 (file)
@@ -1078,6 +1078,13 @@ at login.  Local and dynamic reconfiguration are its key features.")
       (sha256
        (base32 "16i7qzjmm6g0lzha8yzpfrlcxnvkgh95hkq9gdjd4zmzb8d0wxa1"))))
     (build-system gnu-build-system)
+    (arguments
+     `(,@(if (%current-target-system)
+             '(#:configure-flags
+               (list
+                "ac_cv_func_malloc_0_nonnull=yes"
+                "ac_cv_func_realloc_0_nonnull=yes"))
+             '())))
     (inputs `(("ncurses" ,ncurses)))
     (home-page "https://gitlab.com/psmisc/psmisc")
     (synopsis "Small utilities that use the proc file system")