diff options
Diffstat (limited to 'apps/codecs/lib/tlsf/libtlsf.make')
-rw-r--r-- | apps/codecs/lib/tlsf/libtlsf.make | 7 |
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 | ||
19 | TLSFLIBFLAGS = $(CODECFLAGS) -ffunction-sections | 19 | TLSFLIBFLAGS = $(CODECFLAGS) |
20 | 20 | ||
21 | ifdef APP_TYPE | 21 | ifdef APP_TYPE |
22 | TLSFLIBFLAGS += -DTLSF_STATISTIC=1 | 22 | TLSFLIBFLAGS += -DTLSF_STATISTIC=1 |
23 | endif | 23 | endif |
24 | 24 | ||
25 | # Do not use '-ffunction-sections' when compiling sdl-sim | ||
26 | ifneq ($(findstring sdl-sim, $(APP_TYPE)), sdl-sim) | ||
27 | TLSFLIBFLAGS += -ffunction-sections | ||
28 | endif | ||
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) \ |