diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 9181c86725..a20e5bafee 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -246,7 +246,7 @@ jobs: if: success() && matrix.type == 'apps' run: | export CFLAGS="-O3" - export CXXFLAGS="-O3" + export CXXFLAGS="-O3 -std=c++11" export LDFLAGS="-static-libstdc++ -s" export RELEASE_ARCH=x86_64 ./configure --enable-apps --enable-apps-vbox --disable-server --disable-client --disable-manager @@ -256,7 +256,7 @@ jobs: if: success() && matrix.type == 'apps-x86' run: | export CFLAGS="-O3 -m32" - export CXXFLAGS="-O3 -m32" + export CXXFLAGS="-O3 -m32 -std=c++11" export LDFLAGS="-static-libstdc++ -s -m32" export RELEASE_ARCH=i686 ./configure --enable-apps --enable-apps-vbox --disable-server --disable-client --disable-manager --host=i686-linux-gnu diff --git a/linux/arm64/build_curl_arm64.sh b/linux/arm64/build_curl_arm64.sh index 4e79a03006..ccceef23b5 100755 --- a/linux/arm64/build_curl_arm64.sh +++ b/linux/arm64/build_curl_arm64.sh @@ -25,7 +25,7 @@ export CC=aarch64-linux-gnu-gcc export CXX=aarch64-linux-gnu-g++ export LD=aarch64-linux-gnu-ld export CFLAGS="--sysroot=$TCSYSROOT -I$TCINCLUDES/include -march=armv8-a -O3" -export CXXFLAGS="--sysroot=$TCSYSROOT -I$TCINCLUDES/include -march=armv8-a -O3" +export CXXFLAGS="--sysroot=$TCSYSROOT -I$TCINCLUDES/include -march=armv8-a -O3 -std=c++11" export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -march=armv8-a -latomic -static-libstdc++" MAKE_FLAGS="" diff --git a/linux/arm64/build_example_arm64.sh b/linux/arm64/build_example_arm64.sh index dbaa0ee01a..b4b1c99df9 100755 --- a/linux/arm64/build_example_arm64.sh +++ b/linux/arm64/build_example_arm64.sh @@ -26,7 +26,7 @@ export CC=aarch64-linux-gnu-gcc export CXX=aarch64-linux-gnu-g++ export LD=aarch64-linux-gnu-ld export CFLAGS="--sysroot=$TCSYSROOT -I$TCINCLUDES/include -march=armv8-a -O3 -I$BOINC -I$BOINC_LIB_DIR -I$BOINC_API_DIR -I$BOINC_ZIP_DIR" -export CXXFLAGS="--sysroot=$TCSYSROOT -I$TCINCLUDES/include -march=armv8-a -O3 -I$BOINC -I$BOINC_LIB_DIR -I$BOINC_API_DIR -I$BOINC_ZIP_DIR" +export CXXFLAGS="--sysroot=$TCSYSROOT -I$TCINCLUDES/include -march=armv8-a -O3 -I$BOINC -I$BOINC_LIB_DIR -I$BOINC_API_DIR -I$BOINC_ZIP_DIR -std=c++11" export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -march=armv8-a -latomic -static-libstdc++" CONFIG_FLAGS="--with-ssl=$TCINCLUDES --with-libcurl=$TCINCLUDES" diff --git a/linux/arm64/build_libraries_arm64.sh b/linux/arm64/build_libraries_arm64.sh index fb390889dd..0092cd59de 100755 --- a/linux/arm64/build_libraries_arm64.sh +++ b/linux/arm64/build_libraries_arm64.sh @@ -21,7 +21,7 @@ export CC=aarch64-linux-gnu-gcc export CXX=aarch64-linux-gnu-g++ export LD=aarch64-linux-gnu-ld export CFLAGS="--sysroot=$TCSYSROOT -march=armv8-a -O3" -export CXXFLAGS="--sysroot=$TCSYSROOT -march=armv8-a -O3" +export CXXFLAGS="--sysroot=$TCSYSROOT -march=armv8-a -O3 -std=c++11" export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -march=armv8-a -static-libstdc++ -static" MAKE_FLAGS="" diff --git a/linux/arm64/build_openssl_arm64.sh b/linux/arm64/build_openssl_arm64.sh index 8fbb795469..9b48d3c9c5 100755 --- a/linux/arm64/build_openssl_arm64.sh +++ b/linux/arm64/build_openssl_arm64.sh @@ -25,7 +25,7 @@ export CC=aarch64-linux-gnu-gcc export CXX=aarch64-linux-gnu-g++ export LD=aarch64-linux-gnu-ld export CFLAGS="--sysroot=$TCSYSROOT -march=armv8-a -O3" -export CXXFLAGS="--sysroot=$TCSYSROOT -march=armv8-a -O3" +export CXXFLAGS="--sysroot=$TCSYSROOT -march=armv8-a -O3 -std=c++11" export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -march=armv8-a -latomic -static-libstdc++" MAKE_FLAGS=""