summaryrefslogtreecommitdiff
path: root/apps/codecs/lib/tlsf
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-09-07 19:21:57 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-09-07 19:21:57 +0000
commit6a989b8d4dec4750ad474598bd52897381d2f3cb (patch)
tree8837336fa974b64a91c28d2b6628b471962d1da1 /apps/codecs/lib/tlsf
parent28c4f2a84e8b87392dcfff8200fbbc10d5c24adf (diff)
downloadrockbox-6a989b8d4dec4750ad474598bd52897381d2f3cb.zip
rockbox-6a989b8d4dec4750ad474598bd52897381d2f3cb.tar.gz
rockbox-6a989b8d4dec4750ad474598bd52897381d2f3cb.tar.bz2
rockbox-6a989b8d4dec4750ad474598bd52897381d2f3cb.tar.xz
Submit FS#12258. Do not use '-ffunction-sections' and '-fdata-sections' when compiling. Fixes compiler warnings for mingw and cygwin simulatior builds.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30468 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/lib/tlsf')
-rw-r--r--apps/codecs/lib/tlsf/libtlsf.make7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/codecs/lib/tlsf/libtlsf.make b/apps/codecs/lib/tlsf/libtlsf.make
index 7d37d29..2072a45 100644
--- a/apps/codecs/lib/tlsf/libtlsf.make
+++ b/apps/codecs/lib/tlsf/libtlsf.make
@@ -16,12 +16,17 @@ $(TLSFLIB): $(TLSFLIB_OBJ)
$(SILENT)$(shell rm -f $@)
$(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
-TLSFLIBFLAGS = $(CODECFLAGS) -ffunction-sections
+TLSFLIBFLAGS = $(CODECFLAGS)
ifdef APP_TYPE
TLSFLIBFLAGS += -DTLSF_STATISTIC=1
endif
+# Do not use '-ffunction-sections' when compiling sdl-sim
+ifneq ($(findstring sdl-sim, $(APP_TYPE)), sdl-sim)
+ TLSFLIBFLAGS += -ffunction-sections
+endif
+
$(CODECDIR)/lib/tlsf/src/%.o: $(APPSDIR)/codecs/lib/tlsf/src/%.c
$(SILENT)mkdir -p $(dir $@)
$(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) \