mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
pdbox/doom: Use -Wno-stringop-truncation with GCC >=8
This should shut up a lot of the sim build failures Change-Id: Ieaa387585cb8ca0f8b2faff24c08aad9451b28ce
This commit is contained in:
parent
c75dbaae25
commit
d73bfd1a42
2 changed files with 12 additions and 2 deletions
|
|
@ -24,6 +24,10 @@ DOOMCFLAGS = $(PLUGINFLAGS) -Wno-strict-prototypes -O2 -fno-strict-aliasing
|
||||||
ifeq ($(shell expr $(GCCNUM) \> 401),1)
|
ifeq ($(shell expr $(GCCNUM) \> 401),1)
|
||||||
DOOMCFLAGS += -fgnu89-inline
|
DOOMCFLAGS += -fgnu89-inline
|
||||||
endif
|
endif
|
||||||
|
# Disable stringop-truncation warnings on GCC 8 or greater
|
||||||
|
ifeq ($(shell expr $(GCCNUM) \> 800),1)
|
||||||
|
DOOMCFLAGS += -Wno-stringop-truncation
|
||||||
|
endif
|
||||||
|
|
||||||
ifndef APP_TYPE
|
ifndef APP_TYPE
|
||||||
ifeq ($(TARGET), IRIVER_H100)
|
ifeq ($(TARGET), IRIVER_H100)
|
||||||
|
|
|
||||||
|
|
@ -20,12 +20,18 @@ OTHER_SRC += $(PDBOX_SRC)
|
||||||
|
|
||||||
$(PDBOXBUILDDIR)/pdbox.rock: $(PDBOX_OBJ) $(MPEG_OBJ)
|
$(PDBOXBUILDDIR)/pdbox.rock: $(PDBOX_OBJ) $(MPEG_OBJ)
|
||||||
|
|
||||||
PDBOXFLAGS = $(PLUGINFLAGS) -fno-strict-aliasing -Wno-cast-function-type
|
PDBOXFLAGS = $(PLUGINFLAGS) -fno-strict-aliasing -Wno-cast-function-type
|
||||||
PDBOXLDFLAGS = $(PLUGINLDFLAGS)
|
PDBOXLDFLAGS = $(PLUGINLDFLAGS)
|
||||||
ifdef APP_TYPE
|
ifdef APP_TYPE
|
||||||
PDBOXLDFLAGS += -lm
|
PDBOXLDFLAGS += -lm
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Disable stringop-truncation warnings on GCC 8 or greater
|
||||||
|
ifeq ($(shell expr $(GCCNUM) \> 800),1)
|
||||||
|
PDBOXFLAGS += -Wno-stringop-truncation
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
$(PDBOXBUILDDIR)/pdbox.rock: $(PDBOX_OBJ) $(TLSFLIB)
|
$(PDBOXBUILDDIR)/pdbox.rock: $(PDBOX_OBJ) $(TLSFLIB)
|
||||||
|
|
||||||
# Compile PDBox with extra flags (adapted from ZXBox)
|
# Compile PDBox with extra flags (adapted from ZXBox)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue