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

View File

@ -4964,7 +4964,12 @@ from within R.")
(add-after 'mkdist 'no-mtune (add-after 'mkdist 'no-mtune
(lambda _ (lambda _
(substitute* "src/Makevars" (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 (native-inputs
(list hevea (list hevea
perl perl