diff --git a/apps/codecs/libwmapro/libwmapro.make b/apps/codecs/libwmapro/libwmapro.make
index 9177eaf..42086a6 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