summaryrefslogtreecommitdiffstats
path: root/apps/plugins/pdbox
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/pdbox')
-rw-r--r--apps/plugins/pdbox/pdbox.make10
1 files changed, 8 insertions, 2 deletions
diff --git a/apps/plugins/pdbox/pdbox.make b/apps/plugins/pdbox/pdbox.make
index 7ec998dc5e..a9ce0d2755 100644
--- a/apps/plugins/pdbox/pdbox.make
+++ b/apps/plugins/pdbox/pdbox.make
@@ -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)