added back --gc-sections for the ds when dynamic modules aren't enabled

svn-id: r52069
This commit is contained in:
Tony Puccinelli 2010-08-13 19:55:22 +00:00
parent ac1f6f0eb9
commit 1e33b20650

5
configure vendored
View file

@ -1399,6 +1399,9 @@ case $_host_os in
CXXFLAGS="$CXXFLAGS -mcpu=arm9tdmi -mtune=arm9tdmi -fomit-frame-pointer -mthumb-interwork"
CXXFLAGS="$CXXFLAGS -ffunction-sections -fdata-sections -fno-strict-aliasing"
LDFLAGS="$LDFLAGS -specs=ds_arm9.specs -mthumb-interwork -mno-fpu -Wl,-Map,map.txt"
if test "$_dynamic_modules" = no ; then
LDFLAGS="$LDFLAGS -Wl,--gc-sections"
fi
LDFLAGS="$LDFLAGS -L$DEVKITPRO/libnds/lib"
LIBS="$LIBS -lnds9"
;;
@ -1929,12 +1932,12 @@ POST_OBJS_FLAGS := -Wl,--no-whole-archive
'
;;
ds)
DEFINES="$DEFINES -DELF_LOADER_TARGET -DONE_PLUGIN_AT_A_TIME"
_def_plugin='
#define PLUGIN_PREFIX ""
#define PLUGIN_SUFFIX ".plg"
'
_mak_plugins='
DEFINES = "$DEFINES -DELF_LOADER_TARGET -DONE_PLUGIN_AT_A_TIME"
DYNAMIC_MODULES := 1
PLUGIN_PREFIX :=
PLUGIN_SUFFIX := .plg