mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
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
This commit is contained in:
parent
ce5fe4d108
commit
18288fcce6
1 changed files with 2 additions and 2 deletions
|
@ -360,7 +360,7 @@ buildtool() {
|
||||||
elif [ "$config_opt" != "NO_CONFIGURE" ]; then
|
elif [ "$config_opt" != "NO_CONFIGURE" ]; then
|
||||||
echo "ROCKBOXDEV: $toolname/configure"
|
echo "ROCKBOXDEV: $toolname/configure"
|
||||||
# NOTE glibc requires to be compiled with optimization
|
# 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" \
|
"$cfg_dir/configure" "--prefix=$prefix" \
|
||||||
--disable-docs $config_opt
|
--disable-docs $config_opt
|
||||||
fi
|
fi
|
||||||
|
@ -470,7 +470,7 @@ build() {
|
||||||
./configure --prefix=$prefix $configure_params
|
./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
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue