summaryrefslogtreecommitdiff
path: root/recipes-connectivity/ppp/ppp-2.4.7/copts.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-connectivity/ppp/ppp-2.4.7/copts.patch')
-rw-r--r--recipes-connectivity/ppp/ppp-2.4.7/copts.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/recipes-connectivity/ppp/ppp-2.4.7/copts.patch b/recipes-connectivity/ppp/ppp-2.4.7/copts.patch
new file mode 100644
index 0000000..53ff06e
--- /dev/null
+++ b/recipes-connectivity/ppp/ppp-2.4.7/copts.patch
@@ -0,0 +1,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.