diff --git a/package/brotli/brotli.mk b/package/brotli/brotli.mk index 2c1ad48753..248bfb9daf 100644 --- a/package/brotli/brotli.mk +++ b/package/brotli/brotli.mk @@ -14,4 +14,8 @@ BROTLI_CONF_OPTS = \ -DBROTLI_DISABLE_TESTS=ON \ -DBROTLI_BUNDLED_MODE=OFF +ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_68485),y) +BROTLI_CONF_OPTS += -DCMAKE_C_FLAGS="-O0" +endif + $(eval $(cmake-package))