Root/package/network/services/ppp/patches/203-opt_flags.patch

1build: Move optimization flags into a separate variable
2
3Isolate optimization related compiler flags from CFLAGS and move them into a
4separate COPTS variable so that it is easier to override optimizations from
5the environment.
6
7Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8
9--- a/pppd/plugins/radius/Makefile.linux
10+++ b/pppd/plugins/radius/Makefile.linux
11@@ -12,7 +12,8 @@ VERSION = $(shell awk -F '"' '/VERSION/
12 INSTALL = install
13 
14 PLUGIN=radius.so radattr.so radrealms.so
15-CFLAGS=-I. -I../.. -I../../../include -O2 -fPIC -DRC_LOG_FACILITY=LOG_DAEMON
16+COPTS = -O2
17+CFLAGS=-I. -I../.. -I../../../include $(COPTS) -fPIC -DRC_LOG_FACILITY=LOG_DAEMON
18 
19 # Uncomment the next line to include support for Microsoft's
20 # MS-CHAP authentication protocol.
21--- a/pppdump/Makefile.linux
22+++ b/pppdump/Makefile.linux
23@@ -2,7 +2,8 @@ DESTDIR = $(INSTROOT)@DESTDIR@
24 BINDIR = $(DESTDIR)/sbin
25 MANDIR = $(DESTDIR)/share/man/man8
26 
27-CFLAGS= -O -I../include/net
28+COPTS = -O
29+CFLAGS= $(COPTS) -I../include/net
30 OBJS = pppdump.o bsd-comp.o deflate.o zlib.o
31 
32 INSTALL= install
33

Archive Download this file



interactive