Mercurial > octave
changeset 33384:899b5fb309ee
build: Use C++17 for compiling build tools when cross compiling.
* configure.ac (BUILD_CXX, BUILD_CXXFLAGS): We are requiring a C++17 compiler
to build Octave. Also use C++17 when building (native) build tools while
cross-compiling. Allow GNU extensions for those build tools. Add the "-std"
flag to BUILD_CXX instead of BUILD_CXXFLAGS to mirror what is done for native
builds.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Fri, 12 Apr 2024 20:53:15 +0200 |
parents | 79cfa1b7a813 |
children | e28b0e670d18 |
files | configure.ac |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/configure.ac Fri Apr 12 11:15:32 2024 -0400 +++ b/configure.ac Fri Apr 12 20:53:15 2024 +0200 @@ -1011,8 +1011,8 @@ if test "$cross_compiling" = yes; then BUILD_CC="gcc" BUILD_CFLAGS="-O2 -g" - BUILD_CXX="g++" - BUILD_CXXFLAGS="-O2 -g -std=c++11" + BUILD_CXX="g++ -std=gnu++17" + BUILD_CXXFLAGS="-O2 -g" BUILD_LDFLAGS="" BUILD_EXEEXT="" else