From 688ac40430952dc34bfb239ddf29da366b74b3bc Mon Sep 17 00:00:00 2001 From: Maxime Devos Date: Fri, 9 Apr 2021 21:46:24 +0200 Subject: [PATCH 01/16] gnu: irc: Use 'cc-for-target'. As replacing "CC=gcc" with ,(string-append "CC=" (cc-for-target)) does not change the derivation, this patch will not cause any rebuilds, except when cross-compiling (but cross-compiling wass broken anyway). Likewise for the other patches in this series. * gnu/packages/irc.scm (ii, sic)[arguments]<#:make-flags>: Use 'cc-for-target'. --- gnu/packages/irc.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gnu/packages/irc.scm b/gnu/packages/irc.scm index 5fba72b576..12f50cc523 100644 --- a/gnu/packages/irc.scm +++ b/gnu/packages/irc.scm @@ -30,6 +30,7 @@ #:use-module ((guix licenses) #:prefix license:) #:use-module (guix download) #:use-module (guix git-download) + #:use-module (guix utils) #:use-module (guix packages) #:use-module (guix build-system cmake) #:use-module (guix build-system glib-or-gtk) @@ -341,7 +342,7 @@ for the IRCv3 protocol.") (arguments `(#:tests? #f ; no tests #:make-flags (list (string-append "PREFIX=" %output) - "CC=gcc") + ,(string-append "CC=" (cc-for-target))) #:phases (modify-phases %standard-phases (delete 'configure)))) ; no configure @@ -365,7 +366,7 @@ for the IRCv3 protocol.") (build-system gnu-build-system) (arguments `(#:tests? #f ; no tests - #:make-flags (list "CC=gcc" + #:make-flags (list ,(string-append "CC=" (cc-for-target)) (string-append "PREFIX=" %output)) #:phases (modify-phases %standard-phases -- 2.31.1