asterisk-chan-dongle: add patch to force OpenWrt CFLAGS

Prevent ./configure from adding '-O6' to CFLAGS.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This commit is contained in:
Sebastian Kemper 2018-03-09 14:49:18 +01:00
parent b22af0210e
commit 7beff532c5

View file

@ -0,0 +1,11 @@
--- a/configure.ac
+++ b/configure.ac
@@ -216,8 +216,6 @@ dnl Apply options to defines
if test "x$enable_debug" = "xyes" ; then
CFLAGS="$CFLAGS -O0 -g"
AC_DEFINE([__DEBUG__], [1], [Build with debugging])
-else
- CFLAGS="$CFLAGS -O6"
fi
dnl Asterisk header files use lots of old style declarations, ignore those.