package/asterisk: remove default -O3 optimization flag
authorGiulio Benetti <giulio.benetti@benettiengineering.com>
Fri, 5 Mar 2021 09:11:01 +0000 (10:11 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 6 Mar 2021 15:39:34 +0000 (16:39 +0100)
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>
package/asterisk/asterisk.mk

index b220b5418924a2b205d43d0551f5c8a75328915a..f6a4f8f7873eab5726ddaac0702bf2baeb6f58a7 100644 (file)
@@ -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) \