diff -Naur ppp-2.4.5.orig/pppd/plugins/Makefile.linux ppp-2.4.5/pppd/plugins/Makefile.linux
--- ppp-2.4.5.orig/pppd/plugins/Makefile.linux	2011-10-31 15:41:41.000000000 -0500
+++ ppp-2.4.5/pppd/plugins/Makefile.linux	2011-10-31 15:42:47.000000000 -0500
@@ -1,6 +1,6 @@
 #CC	= gcc
-COPTS	= -O2 -g
-CFLAGS	= $(COPTS) -I.. -I../../include -fPIC
+#COPTS	= -O2 -g
+CFLAGS	+= -I.. -I../../include -fPIC
 LDFLAGS	= -shared
 INSTALL	= install
 
diff -Naur ppp-2.4.5.orig/pppd/plugins/pppoatm/Makefile.linux ppp-2.4.5/pppd/plugins/pppoatm/Makefile.linux
--- ppp-2.4.5.orig/pppd/plugins/pppoatm/Makefile.linux	2011-10-31 15:41:41.000000000 -0500
+++ ppp-2.4.5/pppd/plugins/pppoatm/Makefile.linux	2011-10-31 15:43:04.000000000 -0500
@@ -1,6 +1,6 @@
 #CC	= gcc
-COPTS	= -O2 -g
-CFLAGS	= $(COPTS) -I../.. -I../../../include -fPIC
+#COPTS	= -O2 -g
+CFLAGS	+= -I../.. -I../../../include -fPIC
 LDFLAGS	= -shared
 INSTALL	= install
 
diff -Naur ppp-2.4.5.orig/pppd/plugins/radius/Makefile.linux ppp-2.4.5/pppd/plugins/radius/Makefile.linux
--- ppp-2.4.5.orig/pppd/plugins/radius/Makefile.linux	2011-10-31 15:41:41.000000000 -0500
+++ ppp-2.4.5/pppd/plugins/radius/Makefile.linux	2011-10-31 15:43:37.000000000 -0500
@@ -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 -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.5.orig/pppd/plugins/rp-pppoe/Makefile.linux ppp-2.4.5/pppd/plugins/rp-pppoe/Makefile.linux
--- ppp-2.4.5.orig/pppd/plugins/rp-pppoe/Makefile.linux	2011-10-31 15:41:41.000000000 -0500
+++ ppp-2.4.5/pppd/plugins/rp-pppoe/Makefile.linux	2011-10-31 15:43:54.000000000 -0500
@@ -25,8 +25,8 @@
 # Version is set ONLY IN THE MAKEFILE!  Don't delete this!
 RP_VERSION=3.8p
 
-COPTS=-O2 -g
-CFLAGS=$(COPTS) -I../../../include '-DRP_VERSION="$(RP_VERSION)"'
+#COPTS=-O2 -g
+CFLAGS+=-I../../../include '-DRP_VERSION="$(RP_VERSION)"'
 all: rp-pppoe.so pppoe-discovery
 
 pppoe-discovery: pppoe-discovery.o debug.o
