From d3b0660a9ff3603678b73fe5288635047c404be5 Mon Sep 17 00:00:00 2001 From: funman Date: Wed, 7 Jul 2010 17:10:26 +0000 Subject: [PATCH] wmapro codec sim build needs to link with libm Override generic rule in libwmapro/*.make git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27336 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/libwmapro/libwmapro.make | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/apps/codecs/libwmapro/libwmapro.make b/apps/codecs/libwmapro/libwmapro.make index 9177eafb2..42086a637 100644 --- a/apps/codecs/libwmapro/libwmapro.make +++ b/apps/codecs/libwmapro/libwmapro.make @@ -16,3 +16,13 @@ OTHER_SRC += $(WMAPROLIB_SRC) $(WMAPROLIB): $(WMAPROLIB_OBJ) $(SILENT)$(shell rm -f $@) $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null + +ifdef SIMVER +# wmapro needs libm in the simulator +$(CODECDIR)/wmapro.codec: $(CODECDIR)/wmapro.o + $(call PRINTS,LD $(@F))$(CC) $(CODECFLAGS) -o $(CODECDIR)/wmapro.elf \ + $(filter %.o, $^) \ + $(filter %.a, $+) \ + -lgcc -lm $(CODECLDFLAGS) + $(SILENT)cp $(CODECDIR)/wmapro.elf $@ +endif -- 2.11.4.GIT