@@ 12,7 12,7 @@
;;; Copyright © 2016 Dmitry Nikolaev <cameltheman@gmail.com>
;;; Copyright © 2016, 2017 Nikita <nikita@n0.is>
;;; Copyright © 2016, 2018, 2019, 2020, 2021 Eric Bavier <bavier@posteo.net>
-;;; Copyright © 2016, 2024 Janneke Nieuwenhuizen <janneke@gnu.org>
+;;; Copyright © 2016, 2024, 2025 Janneke Nieuwenhuizen <janneke@gnu.org>
;;; Copyright © 2017 Feng Shu <tumashu@163.com>
;;; Copyright © 2017–2021 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2017 Chris Marusich <cmmarusich@gmail.com>
@@ 2566,7 2566,15 @@ streaming protocols.")
(("#! /bin/sh") (string-append "#!" (which "sh"))))
(setenv "SHELL" (which "bash"))
(setenv "CONFIG_SHELL" (which "bash"))
- (apply invoke "./configure" configure-flags))))))
+ (apply invoke "./configure" configure-flags)
+ ;; Adding CFLAGS to #:configure-flags, or setting it in the
+ ;; enviroment does not work. Adding CFLAGS to #:make-flags
+ ;; breaks the build.
+ (substitute* "config.mak"
+ (("CFLAGS *=" all)
+ (string-append all
+ " -Wno-error=incompatible-pointer-types"
+ " -Wno-error=int-conversion"))))))))
;; FIXME: Add additional inputs once available.
(native-inputs
(list pkg-config yasm))