forked from len0rd/rockbox
Add -lm to pdbox sim build
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27261 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b8286d45be
commit
64276fc0ff
1 changed files with 17 additions and 0 deletions
|
@ -21,8 +21,25 @@ OTHER_SRC += $(PDBOX_SRC)
|
|||
$(PDBOXBUILDDIR)/pdbox.rock: $(PDBOX_OBJ) $(MPEG_OBJ) $(CODECDIR)/libtlsf.a
|
||||
|
||||
PDBOXFLAGS = $(PLUGINFLAGS)
|
||||
PDBOXLDFLAGS = $(PLUGINLDFLAGS)
|
||||
ifdef SIMVER
|
||||
PDBOXLDFLAGS += -lm
|
||||
endif
|
||||
|
||||
# Compile PDBox with extra flags (adapted from ZXBox)
|
||||
$(PDBOXBUILDDIR)/%.o: $(PDBOXSRCDIR)/%.c $(PDBOXSRCDIR)/pdbox.make
|
||||
$(SILENT)mkdir -p $(dir $@)
|
||||
$(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(PDBOXFLAGS) -c $< -o $@
|
||||
|
||||
$(PDBOXBUILDDIR)/pdbox.rock:
|
||||
$(call PRINTS,LD $(@F))$(CC) $(PLUGINFLAGS) -o $*.elf \
|
||||
$(filter %.o, $^) \
|
||||
$(filter %.a, $+) \
|
||||
-lgcc $(PDBOXLDFLAGS)
|
||||
ifdef SIMVER
|
||||
$(SILENT)cp $*.elf $@
|
||||
else
|
||||
$(SILENT)$(OC) -O binary $*.elf $@
|
||||
endif
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue