package/asterisk: fix build failure due to gcc bug 93847
authorGiulio Benetti <giulio.benetti@benettiengineering.com>
Fri, 5 Mar 2021 09:11:02 +0000 (10:11 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 6 Mar 2021 15:39:50 +0000 (16:39 +0100)
commit830fb82822c4a0948fd2dc45ec7851908220e801
treeff5b67dc0001e00ea6df5c078c7142e488e09d3e
parenteaba3c8e131e21c4bae79483211685942e035300
package/asterisk: fix build failure due to gcc bug 93847

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.

Fixes:
http://autobuild.buildroot.net/results/24c0a6ca3b272711a1e6ceaa033925182d0d49c4

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/asterisk/asterisk.mk