Browse Source

ci/centos: use C++11 standard compile mode (#2274)

older versions of gcc support, but does not default to C++11
Nicklas Larsson 3 years ago
parent
commit
34d44d6c11
1 changed files with 1 additions and 0 deletions
  1. 1 0
      .github/workflows/build_centos.sh

+ 1 - 0
.github/workflows/build_centos.sh

@@ -24,6 +24,7 @@ export INSTALL_PREFIX=$1
 # Old versions of GCC on CentOS default to C89 although are C11 capable
 # This causes compilation to fail on >C89 code
 export CFLAGS="-O2 -std=gnu11"
+export CXXFLAGS="-std=gnu++11"
 
 ./configure \
     --prefix="$INSTALL_PREFIX/" \