summaryrefslogtreecommitdiff
path: root/apps/codecs/lib/tlsf/libtlsf.make
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/lib/tlsf/libtlsf.make')
-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 7d37d29b21..2072a4566e 100644
--- a/apps/codecs/lib/tlsf/libtlsf.make
+++ b/apps/codecs/lib/tlsf/libtlsf.make
@@ -16,12 +16,17 @@ $(TLSFLIB): $(TLSFLIB_OBJ)
16 $(SILENT)$(shell rm -f $@) 16 $(SILENT)$(shell rm -f $@)
17 $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null 17 $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
18 18
19TLSFLIBFLAGS = $(CODECFLAGS) -ffunction-sections 19TLSFLIBFLAGS = $(CODECFLAGS)
20 20
21ifdef APP_TYPE 21ifdef APP_TYPE
22 TLSFLIBFLAGS += -DTLSF_STATISTIC=1 22 TLSFLIBFLAGS += -DTLSF_STATISTIC=1
23endif 23endif
24 24
25# Do not use '-ffunction-sections' when compiling sdl-sim
26ifneq ($(findstring sdl-sim, $(APP_TYPE)), sdl-sim)
27 TLSFLIBFLAGS += -ffunction-sections
28endif
29
25$(CODECDIR)/lib/tlsf/src/%.o: $(APPSDIR)/codecs/lib/tlsf/src/%.c 30$(CODECDIR)/lib/tlsf/src/%.o: $(APPSDIR)/codecs/lib/tlsf/src/%.c
26 $(SILENT)mkdir -p $(dir $@) 31 $(SILENT)mkdir -p $(dir $@)
27 $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) \ 32 $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) \