andreas pushed a commit to branch core-packages-team
in repository guix.

commit e47e41e775cce16f599cde053b315ebfcf57d19c
Author: Janneke Nieuwenhuizen <jann...@gnu.org>
AuthorDate: Fri Jan 3 10:34:02 2025 +0100

    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
---
 gnu/packages/statistics.scm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
index 493bec1e6c..6e4399aa34 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -24,6 +24,7 @@
 ;;; Copyright © 2024 Nicolas Graves <ngra...@ngraves.fr>
 ;;; Copyright © 2024-2025 Sharlatan Hellseher <sharlata...@gmail.com>
 ;;; Copyright © 2025 Jonas Freimuth <jonas.freim...@posteo.de>
+;;; Copyright © 2025 Janneke Nieuwenhuizen <jann...@gnu.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -246,7 +247,9 @@ This package also provides @command{xls2csv} to export 
Excel files to CSV.")
      (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

Reply via email to