aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Giulio Benetti <giulio.benetti@benettiengineering.com>2021-03-05 10:11:01 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2021-03-06 16:39:34 +0100
commiteaba3c8e131e21c4bae79483211685942e035300 (patch)
treeca761c1d14824e463f64afe6b32717b1791e401d
parentb4df526ce37bced5be76f40c880de83f4fb23e7b (diff)
downloadbuildroot-eaba3c8e131e21c4bae79483211685942e035300.tar.gz
buildroot-eaba3c8e131e21c4bae79483211685942e035300.tar.bz2
package/asterisk: remove default -O3 optimization flag
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@benettiengineering.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/asterisk/asterisk.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
index b220b54189..f6a4f8f787 100644
--- a/package/asterisk/asterisk.mk
+++ b/package/asterisk/asterisk.mk
@@ -280,6 +280,9 @@ ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
ASTERISK_MAKE_OPTS += ASTLDFLAGS="-latomic"
endif
+# Remove default -O3 optimization flag
+ASTERISK_MAKE_OPTS += OPTIMIZE=""
+
# We want to install sample configuration files, too.
ASTERISK_INSTALL_TARGET_OPTS = \
$(ASTERISK_DIRS) \