Merge pull request #677 from micmac1/fs-no-bashisms
[feed/telephony.git] / net / rtpengine / patches / 01-cflags.patch
1 --- a/lib/lib.Makefile
2 +++ b/lib/lib.Makefile
3 @@ -62,3 +62,6 @@ ifneq ($(DBG),yes)
4 LDLIBS+= $(shell dpkg-buildflags --get LDLIBS)
5 endif
6 endif
7 +
8 +CFLAGS+=$(OpenWrt_CFLAGS)
9 +LDFLAGS+=$(OpenWrt_LDFLAGS)
10 --- a/daemon/Makefile
11 +++ b/daemon/Makefile
12 @@ -1,3 +1,6 @@
13 +OpenWrt_CFLAGS:=$(CFLAGS)
14 +OpenWrt_LDFLAGS:=$(LDFLAGS)
15 +
16 TARGET= rtpengine
17
18 with_iptables_option ?= yes
19 --- a/recording-daemon/Makefile
20 +++ b/recording-daemon/Makefile
21 @@ -1,3 +1,6 @@
22 +OpenWrt_CFLAGS:=$(CFLAGS)
23 +OpenWrt_LDFLAGS:=$(LDFLAGS)
24 +
25 TARGET= rtpengine-recording
26
27 CFLAGS= -g -Wall -Wstrict-prototypes -pthread -I. -I../lib/ -I../kernel-module/
28 --- a/iptables-extension/Makefile
29 +++ b/iptables-extension/Makefile
30 @@ -1,3 +1,6 @@
31 +OpenWrt_CFLAGS:=$(CFLAGS)
32 +OpenWrt_LDFLAGS:=$(LDFLAGS)
33 +
34 CC?=gcc
35 CFLAGS = -O2 -Wall -Wstrict-prototypes -shared -fPIC
36 ifneq ($(RTPENGINE_VERSION),)
37 @@ -22,6 +25,9 @@ else
38 XTABLES = $(shell test -e /usr/include/xtables.h && echo 1)
39 endif
40
41 +CFLAGS+=$(OpenWrt_CFLAGS)
42 +LDFLAGS+=$(OpenWrt_LDFLAGS)
43 +
44 IPTABLES = $(shell test -e /usr/include/iptables.h && echo 1)
45 IP6TABLES = $(shell test -e /usr/include/ip6tables.h && echo 1)
46
47 @@ -37,7 +43,7 @@ WORK=1
48 module: libxt_RTPENGINE.so
49
50 libxt_RTPENGINE.so: libxt_RTPENGINE.c
51 - $(CC) $(CFLAGS) -o libxt_RTPENGINE.so libxt_RTPENGINE.c
52 + $(CC) $(LDFLAGS) $(CFLAGS) -o libxt_RTPENGINE.so libxt_RTPENGINE.c
53
54 else
55