diff options
author | Janneke Nieuwenhuizen <janneke@gnu.org> | 2025-05-17 08:21:44 +0200 |
---|---|---|
committer | Janneke Nieuwenhuizen <janneke@gnu.org> | 2025-05-17 09:24:44 +0200 |
commit | 70f553d2b70d74b49f21594f69ebc9dd99feafea (patch) | |
tree | a20e5530ec13aeef905883f355367f2c9e0d3e0a | |
parent | 3fadea42548389141e84a8481d271ac7280de7bc (diff) | |
download | guix-70f553d2b70d74b49f21594f69ebc9dd99feafea.tar.gz guix-70f553d2b70d74b49f21594f69ebc9dd99feafea.zip |
gnu: libxcrypt: Fix cross-build for MinGW.
* gnu/packages/crypto.scm (libxcrypt):[arguments]: When building for MinGW,
add CFLAGS to #:configure-flags to relax gcc's strictness and add a cache
value to #:configure-flags to help libtool build the shared library.
Change-Id: I60b67f8f1c77c949bcc902c4b388bc278585c81e
-rw-r--r-- | gnu/packages/crypto.scm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm index cf06efc947..d84f7a79f9 100644 --- a/gnu/packages/crypto.scm +++ b/gnu/packages/crypto.scm @@ -27,7 +27,7 @@ ;;; Copyright © 2022 Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> ;;; Copyright © 2023 Ivan Vilata-i-Balaguer <ivan@selidor.net> ;;; Copyright © 2023 Foundation Devices, Inc. <hello@foundationdevices.com> -;;; Copyright © 2024 Janneke Nieuwenhuizen <janneke@gnu.org> +;;; Copyright © 2024, 2025 Janneke Nieuwenhuizen <janneke@gnu.org> ;;; ;;; This file is part of GNU Guix. ;;; @@ -1653,6 +1653,10 @@ checksum tool based on the BLAKE3 cryptographic hash function.") (invoke "patch" "--force" "-p1" "-i" patch))))))) ((target-ppc32?) (list #:tests? #f)) ; TODO: Investigate test failures. + ((target-mingw?) + (list #:configure-flags + #~(list "CFLAGS=-g -O2 -Wno-error=pedantic" + "ac_cv_ld_no_undefined=-no-undefined"))) (else '()))) (synopsis "Extended crypt library for descrypt, md5crypt, bcrypt, and others") |