13288115370edf17a9870c55985be64106ff0991
[openwrt/openwrt.git] / package / network / services / ppp / patches / 001-honor-ldflags.patch
1 --- a/pppd/plugins/radius/Makefile.linux
2 +++ b/pppd/plugins/radius/Makefile.linux
3 @@ -43,13 +43,13 @@ install: all
4 $(INSTALL) -c -m 444 pppd-radattr.8 $(MANDIR)
5
6 radius.so: radius.o libradiusclient.a
7 - $(CC) -o radius.so -shared radius.o libradiusclient.a
8 + $(CC) $(COPTS) -o radius.so -shared radius.o libradiusclient.a
9
10 radattr.so: radattr.o
11 - $(CC) -o radattr.so -shared radattr.o
12 + $(CC) $(COPTS) -o radattr.so -shared radattr.o
13
14 radrealms.so: radrealms.o
15 - $(CC) -o radrealms.so -shared radrealms.o
16 + $(CC) $(COPTS) -o radrealms.so -shared radrealms.o
17
18 CLIENTOBJS = avpair.o buildreq.o config.o dict.o ip_util.o \
19 clientid.o sendserver.o lock.o util.o md5.o
20 --- a/pppd/plugins/rp-pppoe/Makefile.linux
21 +++ b/pppd/plugins/rp-pppoe/Makefile.linux
22 @@ -30,7 +30,7 @@ CFLAGS=$(COPTS) -I../../../include '-DRP
23 all: rp-pppoe.so pppoe-discovery
24
25 pppoe-discovery: pppoe-discovery.o debug.o
26 - $(CC) -o pppoe-discovery pppoe-discovery.o debug.o
27 + $(CC) $(CFLAGS) -o pppoe-discovery pppoe-discovery.o debug.o
28
29 pppoe-discovery.o: pppoe-discovery.c
30 $(CC) $(CFLAGS) -c -o pppoe-discovery.o pppoe-discovery.c
31 @@ -39,7 +39,7 @@ debug.o: debug.c
32 $(CC) $(CFLAGS) -c -o debug.o debug.c
33
34 rp-pppoe.so: plugin.o discovery.o if.o common.o
35 - $(CC) -o rp-pppoe.so -shared plugin.o discovery.o if.o common.o
36 + $(CC) $(CFLAGS) -o rp-pppoe.so -shared plugin.o discovery.o if.o common.o
37
38 install: all
39 $(INSTALL) -d -m 755 $(LIBDIR)