Submitted By: Uwe Düffert (lfs at uwe-dueffert dot de)
Date: 2005-02-22
Initial Package Version: 2.4.2
Origin: self-created, http://www.uwe-dueffert.de/lfs/ownpatches/ppp-2.4.3-optim-1.patch
Upstream Status: not reported
Description: allow using CFLAGS (e.g. for optimization) for all sub targets
 
diff -Naur ppp-2.4.3.orig/pppd/plugins/radius/Makefile.linux ppp-2.4.3/pppd/plugins/radius/Makefile.linux
--- ppp-2.4.3.orig/pppd/plugins/radius/Makefile.linux	2005-02-22 21:52:20.000000000 +0000
+++ ppp-2.4.3/pppd/plugins/radius/Makefile.linux	2005-02-22 21:54:55.000000000 +0000
@@ -12,7 +12,7 @@
 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 -O2 $(MYCFLAGS) -fPIC -DRC_LOG_FACILITY=LOG_DAEMON
 
 # Uncomment the next line to include support for Microsoft's
 # MS-CHAP authentication protocol.
diff -Naur ppp-2.4.3.orig/pppdump/Makefile.linux ppp-2.4.3/pppdump/Makefile.linux
--- ppp-2.4.3.orig/pppdump/Makefile.linux	2005-02-22 21:52:20.000000000 +0000
+++ ppp-2.4.3/pppdump/Makefile.linux	2005-02-22 21:53:50.000000000 +0000
@@ -2,7 +2,7 @@
 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

