Rockbox Development > Starting Development and Compiling
[QUESTION] How to link -lm to codec properly?
(1/1)
gama:
Hi,
I'm working on some codec that needs the math library for the simulator build, currently I tryied using the following rule in the makefile:
--- Code: ---ifdef APP_TYPE
# hosted platforms will use lm
$(CODECDIR)/spc.codec: $(CODECDIR)/spc.o
$(call PRINTS,LD $(@F))$(CC) $(CODECFLAGS) -o $(CODECDIR)/spc.elf \
$(filter %.o, $^) \
$(filter %.a, $+) \
-lgcc -lm $(CODECLDFLAGS)
$(SILENT)$(call objcopy,$(CODECDIR)/spc*.elf,$@)
endif
--- End code ---
But I'm getting the following error during make:
--- Code: ---LD spc.codec
/usr/bin/ld: cannot open map fle /root/rockbox/build-sim/lib/rbcodec/codecs//root/rockbox/build-sim/lib/rbcodec/codecs/spc.map: No such file or directory
--- End code ---
It seems the map path is not correct, but how can I fix that?
I took that code from the wmavoice codec makefile, but apparently it's not used anymore. Could someone please tell me the correct way of linking the math library for the simulator build (and app builds I guess) in a codec?.
Thanks in advance.
Navigation
[0] Message Index
Go to full version