2012-06-19 17:03:24 +00:00
|
|
|
build: Move optimization flags into a separate variable
|
|
|
|
|
|
|
|
Isolate optimization related compiler flags from CFLAGS and move them into a
|
|
|
|
separate COPTS variable so that it is easier to override optimizations from
|
|
|
|
the environment.
|
|
|
|
|
2016-06-07 09:42:32 +00:00
|
|
|
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
2012-06-19 17:03:24 +00:00
|
|
|
|
2009-05-21 10:49:21 +00:00
|
|
|
--- a/pppd/plugins/radius/Makefile.linux
|
|
|
|
+++ b/pppd/plugins/radius/Makefile.linux
|
2014-06-15 20:55:17 +00:00
|
|
|
@@ -12,7 +12,8 @@ VERSION = $(shell awk -F '"' '/VERSION/
|
2009-05-20 22:36:38 +00:00
|
|
|
INSTALL = install
|
|
|
|
|
|
|
|
PLUGIN=radius.so radattr.so radrealms.so
|
|
|
|
-CFLAGS=-I. -I../.. -I../../../include -O2 -fPIC -DRC_LOG_FACILITY=LOG_DAEMON
|
|
|
|
+COPTS = -O2
|
|
|
|
+CFLAGS=-I. -I../.. -I../../../include $(COPTS) -fPIC -DRC_LOG_FACILITY=LOG_DAEMON
|
|
|
|
|
|
|
|
# Uncomment the next line to include support for Microsoft's
|
|
|
|
# MS-CHAP authentication protocol.
|
2018-12-06 12:10:54 +00:00
|
|
|
@@ -43,13 +44,13 @@ install: all
|
|
|
|
$(INSTALL) -c -m 444 pppd-radattr.8 $(MANDIR)
|
|
|
|
|
|
|
|
radius.so: radius.o libradiusclient.a
|
|
|
|
- $(CC) $(LDFLAGS) -o radius.so -shared radius.o libradiusclient.a
|
|
|
|
+ $(CC) $(LDFLAGS) -fPIC -o radius.so -shared radius.o libradiusclient.a
|
|
|
|
|
|
|
|
radattr.so: radattr.o
|
|
|
|
- $(CC) $(LDFLAGS) -o radattr.so -shared radattr.o
|
|
|
|
+ $(CC) $(LDFLAGS) -fPIC -o radattr.so -shared radattr.o
|
|
|
|
|
|
|
|
radrealms.so: radrealms.o
|
|
|
|
- $(CC) $(LDFLAGS) -o radrealms.so -shared radrealms.o
|
|
|
|
+ $(CC) $(LDFLAGS) -fPIC -o radrealms.so -shared radrealms.o
|
|
|
|
|
|
|
|
CLIENTOBJS = avpair.o buildreq.o config.o dict.o ip_util.o \
|
|
|
|
clientid.o sendserver.o lock.o util.o md5.o
|
2009-05-21 10:49:21 +00:00
|
|
|
--- a/pppdump/Makefile.linux
|
|
|
|
+++ b/pppdump/Makefile.linux
|
|
|
|
@@ -2,7 +2,8 @@ DESTDIR = $(INSTROOT)@DESTDIR@
|
2009-05-20 22:36:38 +00:00
|
|
|
BINDIR = $(DESTDIR)/sbin
|
|
|
|
MANDIR = $(DESTDIR)/share/man/man8
|
|
|
|
|
|
|
|
-CFLAGS= -O -I../include/net
|
|
|
|
+COPTS = -O
|
|
|
|
+CFLAGS= $(COPTS) -I../include/net
|
|
|
|
OBJS = pppdump.o bsd-comp.o deflate.o zlib.o
|
|
|
|
|
|
|
|
INSTALL= install
|
2018-07-14 08:59:52 +00:00
|
|
|
--- a/pppd/plugins/rp-pppoe/Makefile.linux
|
|
|
|
+++ b/pppd/plugins/rp-pppoe/Makefile.linux
|
|
|
|
@@ -39,7 +39,7 @@ debug.o: debug.c
|
2019-05-13 13:26:56 +00:00
|
|
|
$(CC) $(CFLAGS) -I../../.. -c -o debug.o debug.c
|
2018-07-14 08:59:52 +00:00
|
|
|
|
|
|
|
rp-pppoe.so: plugin.o discovery.o if.o common.o
|
2018-12-06 12:10:54 +00:00
|
|
|
- $(CC) $(LDFLAGS) -o rp-pppoe.so -shared plugin.o discovery.o if.o common.o
|
|
|
|
+ $(CC) $(LDFLAGS) -fPIC -o rp-pppoe.so -shared plugin.o discovery.o if.o common.o
|
2018-07-14 08:59:52 +00:00
|
|
|
|
|
|
|
install: all
|
|
|
|
$(INSTALL) -d -m 755 $(LIBDIR)
|