gnu: maradns: Use CC-FOR-TARGET.
authorTobias Geerinckx-Rice <me@tobias.gr>
Sat, 11 Jul 2020 12:40:03 +0000 (14:40 +0200)
committerTobias Geerinckx-Rice <me@tobias.gr>
Sat, 11 Jul 2020 12:40:30 +0000 (14:40 +0200)
* gnu/packages/dns.scm (maradns)[arguments]: Use CC-FOR-TARGET.

gnu/packages/dns.scm

index 93bf9f4..f96eeda 100644 (file)
@@ -966,11 +966,7 @@ known public suffixes.")
      `(#:tests? #f                      ; need to be root to run tests
        #:make-flags
        (list
-        (string-append "CC="
-                       (if ,(%current-target-system)
-                           (string-append (assoc-ref %build-inputs "cross-gcc")
-                                          "/bin/" ,(%current-target-system) "-gcc")
-                           "gcc"))
+        ,(string-append "CC=" (cc-for-target))
         (string-append "PREFIX=" %output)
         (string-append "RPM_BUILD_ROOT=" %output))
        #:phases