diff --git a/package/opus/opus.mk b/package/opus/opus.mk index f23461a3af..3fb2d5d65f 100644 --- a/package/opus/opus.mk +++ b/package/opus/opus.mk @@ -10,6 +10,14 @@ OPUS_LICENSE = BSD-3-Clause OPUS_LICENSE_FILES = COPYING OPUS_INSTALL_STAGING = YES +OPUS_CFLAGS = $(TARGET_CFLAGS) + +ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y) +OPUS_CFLAGS += -O0 +endif + +OPUS_CONF_ENV = CFLAGS="$(OPUS_CFLAGS)" + ifeq ($(BR2_PACKAGE_OPUS_FIXED_POINT),y) OPUS_CONF_OPTS += --enable-fixed-point endif