[package] update ppp to v2.4.4 (#5102)
[openwrt/svn-archive/archive.git] / package / ppp / patches / 203-opt_flags.patch
1 diff -Naur ppp-2.4.4.orig/pppd/plugins/radius/Makefile.linux ppp-2.4.4/pppd/plugins/radius/Makefile.linux
2 --- ppp-2.4.4.orig/pppd/plugins/radius/Makefile.linux 2009-05-07 18:05:57.000000000 -0400
3 +++ ppp-2.4.4/pppd/plugins/radius/Makefile.linux 2009-05-07 18:06:23.000000000 -0400
4 @@ -12,7 +12,8 @@
5 INSTALL = install
6
7 PLUGIN=radius.so radattr.so radrealms.so
8 -CFLAGS=-I. -I../.. -I../../../include -O2 -fPIC -DRC_LOG_FACILITY=LOG_DAEMON
9 +COPTS = -O2
10 +CFLAGS=-I. -I../.. -I../../../include $(COPTS) -fPIC -DRC_LOG_FACILITY=LOG_DAEMON
11
12 # Uncomment the next line to include support for Microsoft's
13 # MS-CHAP authentication protocol.
14 diff -Naur ppp-2.4.4.orig/pppdump/Makefile.linux ppp-2.4.4/pppdump/Makefile.linux
15 --- ppp-2.4.4.orig/pppdump/Makefile.linux 2009-05-07 18:05:57.000000000 -0400
16 +++ ppp-2.4.4/pppdump/Makefile.linux 2009-05-07 18:06:23.000000000 -0400
17 @@ -2,7 +2,8 @@
18 BINDIR = $(DESTDIR)/sbin
19 MANDIR = $(DESTDIR)/share/man/man8
20
21 -CFLAGS= -O -I../include/net
22 +COPTS = -O
23 +CFLAGS= $(COPTS) -I../include/net
24 OBJS = pppdump.o bsd-comp.o deflate.o zlib.o
25
26 INSTALL= install
27 diff -Naur ppp-2.4.4.orig/pppd/plugins/radius/Makefile.linux ppp-2.4.4/pppd/plugins/radius/Makefile.linux
28 --- ppp-2.4.4.orig/pppd/plugins/radius/Makefile.linux 2009-05-07 18:05:57.000000000 -0400
29 +++ ppp-2.4.4/pppd/plugins/radius/Makefile.linux 2009-05-07 18:06:23.000000000 -0400
30 @@ -12,7 +12,8 @@
31 INSTALL = install
32
33 PLUGIN=radius.so radattr.so radrealms.so
34 -CFLAGS=-I. -I../.. -I../../../include -O2 -fPIC -DRC_LOG_FACILITY=LOG_DAEMON
35 +COPTS = -O2
36 +CFLAGS=-I. -I../.. -I../../../include $(COPTS) -fPIC -DRC_LOG_FACILITY=LOG_DAEMON
37
38 # Uncomment the next line to include support for Microsoft's
39 # MS-CHAP authentication protocol.
40 diff -Naur ppp-2.4.4.orig/pppdump/Makefile.linux ppp-2.4.4/pppdump/Makefile.linux
41 --- ppp-2.4.4.orig/pppdump/Makefile.linux 2009-05-07 18:05:57.000000000 -0400
42 +++ ppp-2.4.4/pppdump/Makefile.linux 2009-05-07 18:06:23.000000000 -0400
43 @@ -2,7 +2,8 @@
44 BINDIR = $(DESTDIR)/sbin
45 MANDIR = $(DESTDIR)/share/man/man8
46
47 -CFLAGS= -O -I../include/net
48 +COPTS = -O
49 +CFLAGS= $(COPTS) -I../include/net
50 OBJS = pppdump.o bsd-comp.o deflate.o zlib.o
51
52 INSTALL= install