From: Sebastian Kemper Date: Fri, 9 Mar 2018 13:49:18 +0000 (+0100) Subject: asterisk-chan-dongle: add patch to force OpenWrt CFLAGS X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7beff532c5a9a9d409388dd275ba301d8cfdae5c;p=feed%2Ftelephony.git asterisk-chan-dongle: add patch to force OpenWrt CFLAGS Prevent ./configure from adding '-O6' to CFLAGS. Signed-off-by: Sebastian Kemper --- diff --git a/net/asterisk-chan-dongle/patches/300-use-openwrt-flags.patch b/net/asterisk-chan-dongle/patches/300-use-openwrt-flags.patch new file mode 100644 index 0000000..1380e70 --- /dev/null +++ b/net/asterisk-chan-dongle/patches/300-use-openwrt-flags.patch @@ -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.