aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorTony Puccinelli2010-07-13 03:22:42 +0000
committerTony Puccinelli2010-07-13 03:22:42 +0000
commiteced5b3c82c93d9febb14b5fe4eba34d5ce171b8 (patch)
tree2c1e5f3393790db0dad0d5936d619480e16e4009 /backends
parent7335e2fc6799478177e70e58645dea3a56883b5f (diff)
downloadscummvm-rg350-eced5b3c82c93d9febb14b5fe4eba34d5ce171b8.tar.gz
scummvm-rg350-eced5b3c82c93d9febb14b5fe4eba34d5ce171b8.tar.bz2
scummvm-rg350-eced5b3c82c93d9febb14b5fe4eba34d5ce171b8.zip
removed --gc-sections linker flags so functions/data needed after run-time linking of plugins won't be mistakenly garbage-collected during building
svn-id: r50838
Diffstat (limited to 'backends')
-rw-r--r--backends/platform/ds/arm9/makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/backends/platform/ds/arm9/makefile b/backends/platform/ds/arm9/makefile
index 97094c8968..706cf6549f 100644
--- a/backends/platform/ds/arm9/makefile
+++ b/backends/platform/ds/arm9/makefile
@@ -1,6 +1,7 @@
srcdir ?= .
DEPDIR := .deps
+VERBOSE_BUILD = 1
DYNAMIC_MODULES = 1
libndsdir = $(DEVKITPRO)/libnds
#libndsdir = /home/neil/devkitpror21/libnds
@@ -247,7 +248,7 @@ endif
DEFINES += -DREDUCE_MEMORY_USAGE
-LDFLAGS = -specs=ds_arm9.specs -mthumb-interwork -mno-fpu -Wl,-Map,map.txt -Wl,--gc-sections
+LDFLAGS = -specs=ds_arm9.specs -mthumb-interwork -mno-fpu -Wl,-Map,map.txt#-Wl,--gc-sections
ifdef WRAP_MALLOC
LDFLAGS += -Wl,--wrap,malloc
@@ -274,11 +275,11 @@ POST_OBJS_FLAGS = -Wl,--no-whole-archive
endif
#-Lscumm -lscumm -Lbase -lbase -Lcommon -lcommon -Lgraphics -lgraphics -Lgui -lgui -Lsound -lsound
-EXECUTABLE = scummvm.elf#$(portdir)/$(BUILD)/scummvm.elf
+EXECUTABLE = scummvm.elf
PLUGIN_PREFIX =
PLUGIN_SUFFIX = .plg
PLUGIN_EXTRA_DEPS = $(portdir)/source/plugin.ld $(portdir)/source/plugin.syms $(EXECUTABLE)
-PLUGIN_LDFLAGS += -nostartfiles -Wl,-q,--just-symbols,$(EXECUTABLE),-T$(portdir)/source/plugin.ld,--retain-symbols-file,$(portdir)/source/plugin.syms -lstdc++ -lc -mthumb-interwork -mno-fpu -Wl,--gc-sections -mno-crt0 $(DEVKITPRO)/devkitARM/arm-eabi/lib/ds_arm9_crt0.o
+PLUGIN_LDFLAGS += -mno-crt0 $(DEVKITPRO)/devkitARM/arm-eabi/lib/ds_arm9_crt0.o -nostartfiles -Wl,-q,--just-symbols,$(EXECUTABLE),-T$(portdir)/source/plugin.ld,--retain-symbols-file,$(portdir)/source/plugin.syms -lstdc++ -lc -mthumb-interwork -mno-fpu#-Wl,--gc-sections
MKDIR = mkdir -p
RM = rm -f
RM_REC = rm -rf