gnu: r: Fix build with gcc-14.

* gnu/packages/statistics.scm (r-with-tests)[arguments]: Add CFLAGS to #:make-flags
to relax gcc-14's strictness.

Change-Id: I2b96d4da099572d2c356b99ccbc0e5b86f8ef136
This commit is contained in:
Janneke Nieuwenhuizen 2025-01-03 10:34:02 +01:00
parent 0dff3a12c1
commit 7e0fbcc6c7
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -23,6 +23,7 @@
;;; Copyright © 2024 Vinicius Monego <monego@posteo.net>
;;; Copyright © 2024 Nicolas Graves <ngraves@ngraves.fr>
;;; Copyright © 2024 Sharlatan Hellseher <sharlatanus@gmail.com>
;;; Copyright © 2024 Janneke Nieuwenhuizen <janneke@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
@ -245,7 +246,9 @@ (define r-with-tests
(list
#:disallowed-references `(,tzdata-for-tests)
#:make-flags
#~(list (string-append "LDFLAGS=-Wl,-rpath=" #$output "/lib/R/lib")
#~(list (string-append "CFLAGS=-g -O2"
" -Wno-error=implicit-function-declaration")
(string-append "LDFLAGS=-Wl,-rpath=" #$output "/lib/R/lib")
;; This affects the embedded timestamp of only the core packages.
"PKG_BUILT_STAMP=1970-01-01")
#:phases