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