summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/ppp/ppp/copts.patch
blob: 53ff06e03ea523fe8b390b26532da7aa2b848e54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
ppp: use build system CFLAGS when compiling

Upstream-Status: Pending

Override the hard-coded COPTS make variables with
CFLAGS.  Add COPTS into one Makefile that did not
use it.

Signed-off-by: Joe Slater <jslater@windriver.com>

--- a/pppd/plugins/radius/Makefile.linux
+++ b/pppd/plugins/radius/Makefile.linux
@@ -12,7 +12,7 @@ VERSION = $(shell awk -F '"' '/VERSION/ 
 INSTALL	= install
 
 PLUGIN=radius.so radattr.so radrealms.so
-CFLAGS=-I. -I../.. -I../../../include -O2 -fPIC -DRC_LOG_FACILITY=LOG_DAEMON
+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.