diff options
author | Andreas Enge <andreas@enge.fr> | 2025-07-19 11:27:10 +0200 |
---|---|---|
committer | Andreas Enge <andreas@enge.fr> | 2025-07-19 11:44:24 +0200 |
commit | 43d3a991b8ae864d478c9c6384623439d05c06c9 (patch) | |
tree | 3cf12dfb3ac06dccbd1d1a50bd9bcbb4652a6e34 | |
parent | 5dc7e7a75dbc988a2c2979cd6459cadfc8252165 (diff) |
gnu: libmcrypt: Fix build with gcc@14.
* gnu/packages/mcrypt.scm (libmcrypt)[arguments]<#:phases>:
Add phase to set CFLAGS.
Change-Id: Ia6c4ba4156930fb9b7a9a08937deb9b1938cde89
-rw-r--r-- | gnu/packages/mcrypt.scm | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/gnu/packages/mcrypt.scm b/gnu/packages/mcrypt.scm index e5e6338475..5eacae354c 100644 --- a/gnu/packages/mcrypt.scm +++ b/gnu/packages/mcrypt.scm @@ -1,6 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2014, 2020 Eric Bavier <bavier@posteo.net> ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il> +;;; Copyright © 2025 Andreas Enge <andreas@enge.fr> ;;; ;;; This file is part of GNU Guix. ;;; @@ -18,10 +19,11 @@ ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. (define-module (gnu packages mcrypt) - #:use-module (guix packages) - #:use-module ((guix licenses) #:select (gpl2+)) - #:use-module (guix download) #:use-module (guix build-system gnu) + #:use-module (guix download) + #:use-module (guix gexp) + #:use-module ((guix licenses) #:select (gpl2+)) + #:use-module (guix packages) #:use-module (gnu packages) #:use-module (gnu packages compression) #:use-module (gnu packages perl)) @@ -70,6 +72,16 @@ them.") (base32 "0gipgb939vy9m66d3k8il98rvvwczyaw2ixr8yn6icds9c3nrsz4")))) (build-system gnu-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-before 'configure 'set-CFLAGS + (lambda _ + ;; Setting STDC_HEADERS causes inclusion of standard + ;; headers in lib/libdefs.h. + (setenv "CFLAGS" (string-append "-g -O2 -DSTDC_HEADERS " + "-Wno-error=implicit-int"))))))) (home-page "https://mcrypt.sourceforge.net/") (synopsis "Encryption algorithm library") (description |