]> git.ozlabs.org Git - ppp.git/commitdiff
Allow overriding the optimization level with CFLAGS (#197)
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Thu, 31 Dec 2020 05:34:09 +0000 (06:34 +0100)
committerGitHub <noreply@github.com>
Thu, 31 Dec 2020 05:34:09 +0000 (16:34 +1100)
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Co-authored-by: Marco d'Itri <md@linux.it>
pppd/plugins/radius/Makefile.linux
pppdump/Makefile.linux

index ddfa9b544194b023f2d748d139f494ad9cee0cff..3a15b03347cb5357e1f17f27ccb7d68438beef82 100644 (file)
@@ -12,7 +12,8 @@ VERSION = $(shell awk -F '"' '/VERSION/ { print $$2; }' ../../patchlevel.h)
 INSTALL        = install
 
 PLUGIN=radius.so radattr.so radrealms.so
 INSTALL        = install
 
 PLUGIN=radius.so radattr.so radrealms.so
-CFLAGS=-I. -I../.. -I../../../include -O2 -fPIC -DRC_LOG_FACILITY=LOG_DAEMON
+CFLAGS ?= -O2
+CFLAGS += -I. -I../.. -I../../../include -fPIC -DRC_LOG_FACILITY=LOG_DAEMON
 
 # Uncomment the next line to include support for Microsoft's
 # MS-CHAP authentication protocol.
 
 # Uncomment the next line to include support for Microsoft's
 # MS-CHAP authentication protocol.
index 0457561f1034add1ea19e60cc3f7f3d70ea04b0e..742a4b805665f4238b74172a7d9d7da89d4ef128 100644 (file)
@@ -2,7 +2,8 @@ DESTDIR = $(INSTROOT)@DESTDIR@
 BINDIR = $(DESTDIR)/sbin
 MANDIR = $(DESTDIR)/share/man/man8
 
 BINDIR = $(DESTDIR)/sbin
 MANDIR = $(DESTDIR)/share/man/man8
 
-CFLAGS= -O -I../include/net
+CFLAGS ?= -O
+CFLAGS += -I../include/net
 OBJS = pppdump.o bsd-comp.o deflate.o zlib.o
 
 INSTALL= install
 OBJS = pppdump.o bsd-comp.o deflate.o zlib.o
 
 INSTALL= install