From 4fe4950da0373cd1ef87420eb651f11f70a1d5b8 Mon Sep 17 00:00:00 2001 From: Maxime Devos Date: Fri, 9 Apr 2021 21:54:58 +0200 Subject: [PATCH 03/16] gnu: crypto: Use 'cc-for-target'. * gnu/packages/crypto.scm (signify, keyutils, ssss, libscrypt, enchive)[arguments]<#:make-flags>: Use 'cc-for-target'. --- gnu/packages/crypto.scm | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm index 57d417de80..1c9677ff94 100644 --- a/gnu/packages/crypto.scm +++ b/gnu/packages/crypto.scm @@ -214,7 +214,7 @@ communication, encryption, decryption, signatures, etc.") ;; like OpenBSD's pledge(). (arguments `(#:make-flags - (list "CC=gcc" + (list ,(string-append "CC=" (cc-for-target)) (string-append "PREFIX=" (assoc-ref %outputs "out"))) #:phases (modify-phases %standard-phases @@ -376,7 +376,7 @@ the wrong hands.") (arguments `(#:phases (modify-phases %standard-phases (delete 'configure)) ; no configure script - #:make-flags (list "CC=gcc" + #:make-flags (list ,(string-append "CC=" (cc-for-target)) "RPATH=-Wl,-rpath,$(DESTDIR)$(LIBDIR)" (string-append "DESTDIR=" (assoc-ref %outputs "out")) @@ -469,7 +469,7 @@ no man page, refer to the home page for usage details.") (arguments `(#:tests? #f ; No test suite #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")) - "CC=gcc") + ,(string-append "CC=" (cc-for-target))) #:phases (modify-phases %standard-phases (delete 'configure) ; no configuration to be done @@ -629,7 +629,7 @@ attacks than alternative functions such as @code{PBKDF2} or @code{bcrypt}.") (outputs (list "out" "static")) (arguments `(#:make-flags (list (string-append "PREFIX=" %output) - "CC=gcc") + ,(string-append "CC=" (cc-for-target))) #:phases (modify-phases %standard-phases (delete 'configure) ; no configure script @@ -1069,8 +1069,9 @@ cannot sign messages in OpenBSD format yet.") (file-name (git-file-name name version)))) (build-system gnu-build-system) (arguments - '(#:tests? #f ; no check target ' - #:make-flags (list "CC=gcc" "PREFIX=$(out)") + `(#:tests? #f ; no check target ' + #:make-flags (list ,(string-append "CC=" (cc-for-target)) + "PREFIX=$(out)") #:phases (modify-phases %standard-phases (delete 'configure) (add-after 'install 'post-install -- 2.31.1