3ds: Restored default cflags to devkitarm compiler

This commit fixes a "Data Abort" segfault when loading a codec.

Change-Id: I7b0b8f37b588504edec4a029fdd69f0875f664f5
This commit is contained in:
Mauricio Garrido 2025-10-26 20:09:54 -06:00
parent 71d2016f4d
commit b47d0ef3cf

3
tools/configure vendored
View file

@ -1064,6 +1064,9 @@ devkitarmcc () {
DLLWRAP=dllwrap DLLWRAP=dllwrap
RANLIB=$DEVKITARM/bin/arm-none-eabi-gcc-ranlib RANLIB=$DEVKITARM/bin/arm-none-eabi-gcc-ranlib
# default cflags, we need -nostdlib and -ffreestanding for shared libraries to work in devkitARM
GCCOPTS="$CCOPTS"
if [ "yes" = "$use_debug" ]; then if [ "yes" = "$use_debug" ]; then
GCCOPTS=`echo $GCCOPTS | sed -e s/\ -Os/\ -Og/` GCCOPTS=`echo $GCCOPTS | sed -e s/\ -Os/\ -Og/`
fi fi