diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-07-07 17:10:26 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-07-07 17:10:26 +0000 |
commit | d05a24e64ea5bb3ead159a95e78b45a9012d085b (patch) | |
tree | 986d491fe13b1005ac49a34d6da780690208d32d | |
parent | 3691435c25b73925029df0c606bfd584f0799621 (diff) |
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
-rw-r--r-- | apps/codecs/libwmapro/libwmapro.make | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/codecs/libwmapro/libwmapro.make b/apps/codecs/libwmapro/libwmapro.make index 9177eafb20..42086a637a 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 |