From dd8a8cfa9a584934bb2707c197c43073d6c03436 Mon Sep 17 00:00:00 2001 From: Giulio Benetti Date: Sat, 10 Sep 2022 00:15:59 +0200 Subject: [PATCH] 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 Signed-off-by: Yann E. MORIN --- package/sox/sox.mk | 8 ++++++++ 1 file changed, 8 insertions(+) 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