asterisk-opus: update to git master as of 2021-11-01
[feed/telephony.git] / net / asterisk-opus / patches / 01-Makefile.patch
index 36d65944deb2d24b347802a1de9b701f38840e95..e7f34c46ed91f9dc540685c0aeda3bf3c370e213 100644 (file)
@@ -1,18 +1,21 @@
 --- a/Makefile
 +++ b/Makefile
-@@ -3,17 +3,17 @@ exec_prefix=$(prefix)
- libdir=$(exec_prefix)/lib
+@@ -5,18 +5,18 @@ libdir=$(exec_prefix)/lib
+ # build with `make OPUSENC=0` to disable rewrite support using libopusenc
+ OPUSENC?=1
  
- CC=gcc
--CFLAGS=-pthread -g3 -O3 -D_FORTIFY_SOURCE=2 -fPIC
-+CFLAGS+=-pthread
+-CFLAGS=-pthread -D_FORTIFY_SOURCE=2 -fPIC
+-DEBUG=-g3
+-OPTIMIZE=-O3
++CFLAGS+=-Wall -pthread
++DEBUG=
++OPTIMIZE=
  CPPFLAGS=
  DEFS=
  INSTALL=/usr/bin/install -c
--LDFLAGS=-shared -pthread -Wl,--warn-common
-+LDFLAGS+=-shared -pthread -Wl,--warn-common
+-LDFLAGS=-pthread -Wl,--warn-common
++LDFLAGS+=-pthread -Wl,--warn-common
  LIBS=
- MKDIR_P=/bin/mkdir -p
  SHELL=/bin/sh
  
  ASTMODDIR=$(libdir)/asterisk/modules