[Buildroot] [git commit branch/2020.02.x] package/asterisk: remove default -O3 optimization flag

Peter Korsgaard peter at korsgaard.com
Tue Mar 16 22:13:37 UTC 2021

commit: https://git.buildroot.net/buildroot/commit/?id=9223b19da70e7d6e06be6efc7da1fe2b05035f78
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2020.02.x

Actually asterisk package gets built with -O3 cflag since it's defaulted
into its sources, but it's not what we want, so let's empty its OPTIMIZE
Makefile variable letting Buildroot CFLAGS to take place instead.

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

diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
index 25b968667c..6d8edc7d59 100644
--- a/package/asterisk/asterisk.mk
+++ b/package/asterisk/asterisk.mk
@@ -281,6 +281,9 @@ ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
+# Remove default -O3 optimization flag
 # We want to install sample configuration files, too.

More information about the buildroot mailing list