From 7beff532c5a9a9d409388dd275ba301d8cfdae5c Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Fri, 9 Mar 2018 14:49:18 +0100 Subject: [PATCH] asterisk-chan-dongle: add patch to force OpenWrt CFLAGS Prevent ./configure from adding '-O6' to CFLAGS. Signed-off-by: Sebastian Kemper --- .../patches/300-use-openwrt-flags.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 net/asterisk-chan-dongle/patches/300-use-openwrt-flags.patch 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. -- 2.30.2