From f8c4a7d4ff342a2d428c76941d7907db1526edd9 Mon Sep 17 00:00:00 2001 From: Greg Lin Date: Thu, 3 Oct 2019 17:54:50 -0500 Subject: [PATCH] Clarify comment about C++11 config --- builder/package.centos-6 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/builder/package.centos-6 b/builder/package.centos-6 index 8ad4c91..eb89fae 100644 --- a/builder/package.centos-6 +++ b/builder/package.centos-6 @@ -20,7 +20,9 @@ export PATH=/usr/local/rvm/rubies/ruby-2.6.3/bin/:/.gems/bin:${PATH} export GEM_HOME=/.gems export GEM_PATH=/.gems -# Additional config for c++11 support +# Additional config for C++11 support in R 3.6. +# R 3.6 no longer sets CXX11 flags without a full C++11 compiler present, but +# the default gcc 4.4.7 still partially supports C++11 through -std=gnu++0x. sed -i 's/^CXX11\ =\ .*/CXX11\ =\ g++/g' /opt/R/${R_VERSION}/lib/R/etc/Makeconf sed -i 's/^CXX11FLAGS\ =\ .*/CXX11FLAGS\ =\ -g\ -O2\ \$\(LTO\)/g' /opt/R/${R_VERSION}/lib/R/etc/Makeconf sed -i 's/^CXX11PICFLAGS\ =\ .*/CXX11PICFLAGS\ =\ -fpic/g' /opt/R/${R_VERSION}/lib/R/etc/Makeconf