From aa93f9ec9c7e02ff6390a444822cbdc7ad55b557 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Thu, 31 Dec 2020 06:34:09 +0100 Subject: [PATCH] Allow overriding the optimization level with CFLAGS (#197) Signed-off-by: Samuel Thibault Co-authored-by: Marco d'Itri --- pppd/plugins/radius/Makefile.linux | 3 ++- pppdump/Makefile.linux | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pppd/plugins/radius/Makefile.linux b/pppd/plugins/radius/Makefile.linux index ddfa9b5..3a15b03 100644 --- a/pppd/plugins/radius/Makefile.linux +++ b/pppd/plugins/radius/Makefile.linux @@ -12,7 +12,8 @@ VERSION = $(shell awk -F '"' '/VERSION/ { print $$2; }' ../../patchlevel.h) 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. diff --git a/pppdump/Makefile.linux b/pppdump/Makefile.linux index 0457561..742a4b8 100644 --- a/pppdump/Makefile.linux +++ b/pppdump/Makefile.linux @@ -2,7 +2,8 @@ DESTDIR = $(INSTROOT)@DESTDIR@ 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 -- 2.39.2