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:
Solomon Peachy 2020-05-17 18:41:01 -04:00
parent c75dbaae25
commit d73bfd1a42
2 changed files with 12 additions and 2 deletions

View file

@ -20,12 +20,18 @@ OTHER_SRC += $(PDBOX_SRC)
$(PDBOXBUILDDIR)/pdbox.rock: $(PDBOX_OBJ) $(MPEG_OBJ)
PDBOXFLAGS = $(PLUGINFLAGS) -fno-strict-aliasing -Wno-cast-function-type
PDBOXLDFLAGS = $(PLUGINLDFLAGS)
PDBOXFLAGS = $(PLUGINFLAGS) -fno-strict-aliasing -Wno-cast-function-type
PDBOXLDFLAGS = $(PLUGINLDFLAGS)
ifdef APP_TYPE
PDBOXLDFLAGS += -lm
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)
# Compile PDBox with extra flags (adapted from ZXBox)