Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | ppp: use build system CFLAGS when compiling |
| 2 | |
| 3 | Upstream-Status: Pending |
| 4 | |
| 5 | Override the hard-coded COPTS make variables with |
| 6 | CFLAGS. Add COPTS into one Makefile that did not |
| 7 | use it. |
| 8 | |
| 9 | Signed-off-by: Joe Slater <jslater@windriver.com> |
| 10 | |
| 11 | --- a/pppd/plugins/radius/Makefile.linux |
| 12 | +++ b/pppd/plugins/radius/Makefile.linux |
| 13 | @@ -12,7 +12,7 @@ VERSION = $(shell awk -F '"' '/VERSION/ |
| 14 | INSTALL = install |
| 15 | |
| 16 | PLUGIN=radius.so radattr.so radrealms.so |
| 17 | -CFLAGS=-I. -I../.. -I../../../include -O2 -fPIC -DRC_LOG_FACILITY=LOG_DAEMON |
| 18 | +CFLAGS=-I. -I../.. -I../../../include $(COPTS) -fPIC -DRC_LOG_FACILITY=LOG_DAEMON |
| 19 | |
| 20 | # Uncomment the next line to include support for Microsoft's |
| 21 | # MS-CHAP authentication protocol. |