~ruther/guix-local

70f553d2b70d74b49f21594f69ebc9dd99feafea — Janneke Nieuwenhuizen 1 year, 2 months ago 3fadea4
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
1 files changed, 5 insertions(+), 1 deletions(-)

M gnu/packages/crypto.scm
M gnu/packages/crypto.scm => gnu/packages/crypto.scm +5 -1
@@ 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")