Subject: [PATCH] gnu: argon2: Fix cross-compilation.
From: Leo Nikkilä <[email-masked]>
To: [email-masked]
Cc: Leo Nikkilä <[email-masked]>
Date: Sun, 17 Dec 2023 00:58:55 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/password-utils.scm (argon2): Use `cc-for-target'.
---
 gnu/packages/password-utils.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm
index 4099f23098..bcd323ced8 100644
--- a/gnu/packages/password-utils.scm
+++ b/gnu/packages/password-utils.scm
@@ -1123,7 +1123,7 @@ (define-public argon2
     (build-system gnu-build-system)
     (arguments
      `(#:test-target "test"
-       #:make-flags (list "CC=gcc"
+       #:make-flags (list (string-append "CC=" ,(cc-for-target))
                           (string-append "PREFIX=" (assoc-ref %outputs "out"))
                           "LIBRARY_REL=lib"
                           (string-append "ARGON2_VERSION=" ,version)
-- 
2.41.0