summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2020-06-02 21:41:32 +0200
committerTobias Geerinckx-Rice <me@tobias.gr>2020-06-03 02:21:23 +0200
commit56a9ef22e3044134844f0093e2a3905f73dd830f (patch)
tree62eaf9eeeb4c22336a3912258370fad358e1d994
parentgnu: net-tools: Fix cross-compilation. (diff)
downloadguix-56a9ef22e3044134844f0093e2a3905f73dd830f.tar.gz
guix-56a9ef22e3044134844f0093e2a3905f73dd830f.tar.bz2
guix-56a9ef22e3044134844f0093e2a3905f73dd830f.tar.xz
gnu: iw: Use CC-FOR-TARGET.
* gnu/packages/linux.scm (iw)[arguments]: Use CC-FOR-TARGET.
-rw-r--r--gnu/packages/linux.scm3
1 files changed, 1 insertions, 2 deletions
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 12c37d8..0a935d5 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -2414,12 +2414,11 @@ configuration and monitoring interfaces.")
2414 (arguments 2414 (arguments
2415 `(#:make-flags 2415 `(#:make-flags
2416 (let* ((target ,(%current-target-system)) 2416 (let* ((target ,(%current-target-system))
2417 (gcc (if target (string-append target "-gcc") "gcc"))
2418 (pkg-config (if target 2417 (pkg-config (if target
2419 (string-append target "-pkg-config") 2418 (string-append target "-pkg-config")
2420 "pkg-config"))) 2419 "pkg-config")))
2421 (list 2420 (list
2422 (string-append "CC=" gcc) 2421 ,(string-append "CC=" (cc-for-target))
2423 (string-append "PKG_CONFIG=" 2422 (string-append "PKG_CONFIG="
2424 (assoc-ref %build-inputs "pkg-config") 2423 (assoc-ref %build-inputs "pkg-config")
2425 "/bin/" pkg-config) 2424 "/bin/" pkg-config)