mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-29 04:01:28 -06:00
gnu: r-rserve: Adjust R@4.5.0 and GCC@14.
* gnu/packages/cran.scm (r-rserve)[arguments]: Adjust compiler flags. Change-Id: Ic3125adb771fda68a7a0e70c8a6c0c72ff14e3e2
This commit is contained in:
parent
7c6e8e7d8d
commit
4e1e433cdf
1 changed files with 13 additions and 0 deletions
|
|
@ -46500,6 +46500,19 @@ download images.")
|
|||
(arguments
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'relax-gcc-14-strictness
|
||||
(lambda _
|
||||
;; XXX FIXME: $HOME/.R/Makevars seems to be the only way to
|
||||
;; set custom CFLAGS for R?
|
||||
(setenv "HOME" (getcwd))
|
||||
(mkdir-p ".R")
|
||||
(with-directory-excursion ".R"
|
||||
(with-output-to-file "Makevars"
|
||||
(lambda _
|
||||
(display (string-append
|
||||
"CFLAGS=-g -O2"
|
||||
" -std=gnu11"
|
||||
" -Wno-error=implicit-function-declaration\n")))))))
|
||||
(add-before 'install 'install-server-binary
|
||||
;; Makevars tries to install to R's store directory.
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue