added back --gc-sections for the ds when dynamic modules aren't enabled
svn-id: r52069
This commit is contained in:
parent
ac1f6f0eb9
commit
1e33b20650
1 changed files with 4 additions and 1 deletions
5
configure
vendored
5
configure
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue