From 4be68610c9f2ff1773f7e409ee8f2bf02fb4ebf9 Mon Sep 17 00:00:00 2001 From: Maxime Devos Date: Fri, 9 Apr 2021 22:22:43 +0200 Subject: [PATCH 08/16] gnu: xdisorg: Use 'cc-for-target'. * gnu/packages/xdisorg.scm (bemenu, xbanish, sxhkd, xcape, xssproxy, xrandr-invert-colors) (hsetroot)[arguments]<#:make-flags>: Use 'cc-for-target'. (xsettingsd)[arguments]<#:scons-flags>: Likewise. --- gnu/packages/xdisorg.scm | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm index 725ea0afd6..3706d2026d 100644 --- a/gnu/packages/xdisorg.scm +++ b/gnu/packages/xdisorg.scm @@ -269,8 +269,8 @@ used to further tweak the behaviour of the different profiles.") (base32 "1fjcs9d3533ay3nz79cx3c0lmy2chgragr2lhsy0xl2ckr0iins0")))) (build-system gnu-build-system) (arguments - '(#:tests? #f - #:make-flags (list "CC=gcc" + `(#:tests? #f + #:make-flags (list ,(string-append "CC=" (cc-for-target)) "CFLAGS=-O2 -fPIC" (string-append "LDFLAGS=-Wl,-rpath=" (assoc-ref %outputs "out") "/lib") @@ -892,7 +892,7 @@ to find buttons, etc, on the screen to click on.") (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=" (assoc-ref %outputs "out"))) #:phases (modify-phases %standard-phases (delete 'configure)))) ; no configure script @@ -1071,7 +1071,7 @@ Guile will work for XBindKeys.") `(#:phases (modify-phases %standard-phases (delete 'configure)) #:tests? #f ; no check target #:make-flags - (list "CC=gcc" + (list ,(string-append "CC=" (cc-for-target)) (string-append "PREFIX=" %output) ;; Keep the documentation where the build system installs LICENSE. (string-append "DOCPREFIX=" %output @@ -1184,7 +1184,7 @@ within a single process.") #:phases (modify-phases %standard-phases (delete 'configure)) #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")) "MANDIR=/share/man/man1" - "CC=gcc"))) + ,(string-append "CC=" (cc-for-target))))) (inputs `(("libxtst" ,libxtst) ("libx11" ,libx11))) @@ -1553,7 +1553,7 @@ demos. It also acts as a nice screen locker.") (arguments `(#:make-flags `("bindir=/bin" "man1dir=/share/man/man1" ,(string-append "DESTDIR=" (assoc-ref %outputs "out")) - "CC=gcc") + ,,(string-append "CC=" (cc-for-target))) #:phases (modify-phases %standard-phases (delete 'configure) (delete 'check)))) @@ -2102,7 +2102,7 @@ to automatically turn it on on login.") "1br3x9vr6xm4ika06n8cfxx1b3wdchdqvyzjl4y1chmivrml8x9h")))) (build-system gnu-build-system) (arguments - `(#:make-flags (list "CC=gcc") + `(#:make-flags (list ,(string-append "CC=" (cc-for-target))) #:tests? #f ; there are none #:phases (modify-phases %standard-phases @@ -2413,7 +2413,7 @@ Xwrits hides itself until you should take another break.") (arguments `(#:scons ,scons-python2 #:scons-flags - (list "CC=gcc") + (list ,(string-append "CC=" (cc-for-target))) #:phases (modify-phases %standard-phases (add-before 'build 'patch-sconstruct @@ -2768,7 +2768,7 @@ and execute @file{.desktop} files of the Application type.") `(#:tests? #f #:make-flags (list - "CC=gcc" + ,(string-append "CC=" (cc-for-target)) (string-append "PREFIX=" (assoc-ref %outputs "out"))) #:phases (modify-phases %standard-phases -- 2.31.1