mikmod: Use -Wno-stringop-truncation with GCC >=8

This will silence a false warning/error when -D_FORTIFY_SOURCE is used

Change-Id: Ic75dbaaa1f419d63163c797d127e6d1928781fd2
This commit is contained in:
Solomon Peachy 2020-05-17 19:13:53 -04:00
parent d73bfd1a42
commit 0cee5ba91b

View file

@ -20,6 +20,11 @@ OTHER_SRC += $(MIKMOD_SRC)
MIKMODCFLAGS = $(PLUGINFLAGS) -I$(MIKMODSRCDIR) -O2 MIKMODCFLAGS = $(PLUGINFLAGS) -I$(MIKMODSRCDIR) -O2
# Disable stringop-truncation warnings on GCC 8 or greater
ifeq ($(shell expr $(GCCNUM) \> 800),1)
MIKMODCFLAGS += -Wno-stringop-truncation
endif
$(MIKMODBUILDDIR)/mikmod.rock: $(MIKMOD_OBJ) $(TLSFLIB) $(MIKMODBUILDDIR)/mikmod.rock: $(MIKMOD_OBJ) $(TLSFLIB)
# new rule needed to use extra compile flags # new rule needed to use extra compile flags