package/sox: work around gcc bug 68485

sox is impacted by the microblaze-specific gcc bug #68485 [0], which is
still unfixed as of gcc 12.x.

As for all other impacted packages, force no optimisation when using a
toolchain riddled with that bug.

Fixes:
   http://autobuild.buildroot.net/results/ac4/ac4fbd55529ac7b4e635a11766f842cd25a833a1/

[0] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68485

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Giulio Benetti 2022-09-10 00:15:59 +02:00 committed by Yann E. MORIN
parent 95c2493a8e
commit dd8a8cfa9a

View File

@ -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