[Buildroot] [git commit branch/2020.11.x] package/asterisk: fix build failure due to gcc bug 93847

Peter Korsgaard peter at korsgaard.com
Tue Mar 16 22:14:06 UTC 2021

commit: https://git.buildroot.net/buildroot/commit/?id=9a721ec09d7f198bfe5a907fd27341d596fca771
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2020.11.x

The asterisk package exhibits gcc bug 93847 when built for the Nios2
architecture with optimization enabled, which causes a build failure.

As done for other packages in Buildroot work around this gcc bug by
setting optimization to -O0 if BR2_TOOLCHAIN_HAS_GCC_BUG_93847=y.


Signed-off-by: Giulio Benetti <giulio.benetti at benettiengineering.com>
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
(cherry picked from commit 830fb82822c4a0948fd2dc45ec7851908220e801)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
 package/asterisk/asterisk.mk | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
index 6de941c8f0..7558ac6ecb 100644
--- a/package/asterisk/asterisk.mk
+++ b/package/asterisk/asterisk.mk
@@ -280,6 +280,14 @@ endif
 # Remove default -O3 optimization flag
+ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_93847),y)
 # We want to install sample configuration files, too.

More information about the buildroot mailing list