gnu: r-spams: Build with C++11.

* gnu/packages/statistics.scm (r-spams)[arguments]: Add phase 'use-c++11.

Change-Id: Ie477af6afe8993919090f6c81e071cee542e69bc
This commit is contained in:
Ricardo Wurmus 2023-11-03 19:17:07 +01:00
parent 142313cf0c
commit 78641cf9da
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 6 additions and 1 deletions

View File

@ -4964,7 +4964,12 @@ from within R.")
(add-after 'mkdist 'no-mtune
(lambda _
(substitute* "src/Makevars"
(("-mtune=native") "")))))))
(("-mtune=native") ""))))
(add-after 'no-mtune 'use-c++11
(lambda _
(substitute* "src/Makevars"
(("-DUSE_BLAS_LIB" m)
(string-append m " -std=c++11"))))))))
(native-inputs
(list hevea
perl