# HG changeset patch # User Markus Mützel # Date 1712947995 -7200 # Node ID 899b5fb309ee1e6089a33d542236707b5a87f7e2 # Parent 79cfa1b7a81320da3eb3f12d9d8158c6da46c92e 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. diff -r 79cfa1b7a813 -r 899b5fb309ee configure.ac --- 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