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:
parent
d73bfd1a42
commit
0cee5ba91b
1 changed files with 5 additions and 0 deletions
|
@ -20,6 +20,11 @@ OTHER_SRC += $(MIKMOD_SRC)
|
|||
|
||||
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)
|
||||
|
||||
# new rule needed to use extra compile flags
|
||||
|
|
Loading…
Reference in a new issue