summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2021-06-04 08:38:35 -0400
committerSolomon Peachy <pizza@shaftnet.org>2021-06-04 08:38:35 -0400
commit18288fcce6ef91da2431f2e29b777c6a72e0062c (patch)
tree3c761f15e97cfe21e6b5ece5c2ea484a9309c806 /tools
parentce5fe4d108acd4f4c37c4fc88c9e482adb47e93e (diff)
downloadrockbox-18288fcce6ef91da2431f2e29b777c6a72e0062c.tar.gz
rockbox-18288fcce6ef91da2431f2e29b777c6a72e0062c.zip
toolchains: Fix gcc 4,9.4 compilation using GCC11.
Basically it defaults to using C++17, which breaks the GCC compilation. Instead, explicitly specify -std=c++03, which should work everywhere. Change-Id: I821591dbbac4fab4b1d930702ed66c7c767b5c92
Diffstat (limited to 'tools')
-rwxr-xr-xtools/rockboxdev.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/rockboxdev.sh b/tools/rockboxdev.sh
index 667dad318d..071ecbc863 100755
--- a/tools/rockboxdev.sh
+++ b/tools/rockboxdev.sh
@@ -360,7 +360,7 @@ buildtool() {
elif [ "$config_opt" != "NO_CONFIGURE" ]; then
echo "ROCKBOXDEV: $toolname/configure"
# NOTE glibc requires to be compiled with optimization
- CFLAGS='-U_FORTIFY_SOURCE -fgnu89-inline -O2' run_cmd "$logfile" \
+ CFLAGS='-U_FORTIFY_SOURCE -fgnu89-inline -O2' CXXFLAGS='-std=c++03' run_cmd "$logfile" \
"$cfg_dir/configure" "--prefix=$prefix" \
--disable-docs $config_opt
fi
@@ -470,7 +470,7 @@ build() {
./configure --prefix=$prefix $configure_params
;;
*)
- CFLAGS='-U_FORTIFY_SOURCE -fgnu89-inline -fcommon' ../$toolname-$version/configure --target=$target --prefix=$prefix --enable-languages=c --disable-libssp --disable-docs $configure_params
+ CFLAGS='-U_FORTIFY_SOURCE -fgnu89-inline -fcommon' CXXFLAGS='-std=c++03' ../$toolname-$version/configure --target=$target --prefix=$prefix --enable-languages=c --disable-libssp --disable-docs $configure_params
;;
esac