diff --git a/package/prboom/prboom.mk b/package/prboom/prboom.mk index 325bf3eb02..36692d29a3 100644 --- a/package/prboom/prboom.mk +++ b/package/prboom/prboom.mk @@ -12,6 +12,14 @@ PRBOOM_LICENSE = GPL-2.0+ PRBOOM_LICENSE_FILES = COPYING PRBOOM_AUTORECONF = YES +PRBOOM_CFLAGS = $(TARGET_CFLAGS) + +ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y) +PRBOOM_CFLAGS += -O0 +endif + +PRBOOM_CONF_ENV += CFLAGS="$(PRBOOM_CFLAGS)" + ifeq ($(BR2_PACKAGE_LIBPNG),y) PRBOOM_DEPENDENCIES += libpng endif