From b47d0ef3cf3e03017edfb6f0b6b5fbbb9af79689 Mon Sep 17 00:00:00 2001 From: Mauricio Garrido Date: Sun, 26 Oct 2025 20:09:54 -0600 Subject: [PATCH] 3ds: Restored default cflags to devkitarm compiler This commit fixes a "Data Abort" segfault when loading a codec. Change-Id: I7b0b8f37b588504edec4a029fdd69f0875f664f5 --- tools/configure | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/configure b/tools/configure index 24d509ce8e..81dc247b10 100755 --- a/tools/configure +++ b/tools/configure @@ -1064,6 +1064,9 @@ devkitarmcc () { DLLWRAP=dllwrap 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 GCCOPTS=`echo $GCCOPTS | sed -e s/\ -Os/\ -Og/` fi