From 78641cf9da4f0c8e1f918a7b96e8a8a84296bff3 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 3 Nov 2023 19:17:07 +0100 Subject: gnu: r-spams: Build with C++11. * gnu/packages/statistics.scm (r-spams)[arguments]: Add phase 'use-c++11. Change-Id: Ie477af6afe8993919090f6c81e071cee542e69bc --- gnu/packages/statistics.scm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'gnu') diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index cf5ba0764b..2413f659a6 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -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 -- cgit v1.2.3