gnu: multipath-tools: Set CC in #:make-flags.
authorTobias Geerinckx-Rice <me@tobias.gr>
Thu, 16 Aug 2018 13:53:39 +0000 (15:53 +0200)
committerTobias Geerinckx-Rice <me@tobias.gr>
Thu, 16 Aug 2018 15:57:50 +0000 (17:57 +0200)
* gnu/packages/linux.scm (multipath-tools)[arguments]: Set ‘CC=gcc’
in #:make-flags instead of in a custom phase.

gnu/packages/linux.scm

index 505119d..0477f40 100644 (file)
@@ -2996,8 +2996,9 @@ arrays when needed.")
                   #t))))
     (build-system gnu-build-system)
     (arguments
-     '(#:tests? #f ; No tests.
-       #:make-flags (list (string-append "DESTDIR="
+     '(#:tests? #f                      ; no tests
+       #:make-flags (list "CC=gcc"
+                          (string-append "DESTDIR="
                                          (assoc-ref %outputs "out"))
                           "SYSTEMDPATH=lib"
                           (string-append "LDFLAGS=-Wl,-rpath="
@@ -3020,11 +3021,7 @@ arrays when needed.")
                  (("/usr/include/libudev.h")
                   (string-append udev "/include/libudev.h")))
                #t)))
-         (delete 'configure)
-         (add-before 'build 'set-CC
-           (lambda _
-             (setenv "CC" "gcc")
-             #t)))))
+         (delete 'configure))))
     (native-inputs
      `(("perl" ,perl)
        ("pkg-config" ,pkg-config)