diff --git a/package/sox/sox.mk b/package/sox/sox.mk index 1896437ad4..d0329bf50d 100644 --- a/package/sox/sox.mk +++ b/package/sox/sox.mk @@ -26,6 +26,14 @@ SOX_CONF_OPTS = \ --with-distro="Buildroot" \ --disable-stack-protector +SOX_CFLAGS = $(TARGET_CFLAGS) + +ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_68485),y) +SOX_CFLAGS += -O0 +endif + +SOX_CONF_ENV += CFLAGS="$(SOX_CFLAGS)" + ifeq ($(BR2_PACKAGE_ALSA_LIB_PCM),y) SOX_DEPENDENCIES += alsa-lib SOX_CONF_OPTS += --enable-alsa