]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/plugins/radius/Makefile.linux
Add cross-compilation support on Linux
[ppp.git] / pppd / plugins / radius / Makefile.linux
index 3a15b03347cb5357e1f17f27ccb7d68438beef82..489aef25229ba2e7fc38dda02023d7f24a5516bd 100644 (file)
@@ -3,6 +3,10 @@
 # Copyright 2002 Roaring Penguin Software Inc.
 #
 
+CROSS_COMPILE=@CROSS_COMPILE@
+CC=$(CROSS_COMPILE)@CC@
+COPTS=@CFLAGS@
+
 DESTDIR = $(INSTROOT)@DESTDIR@
 MANDIR = $(DESTDIR)/share/man/man8
 LIBDIR = $(DESTDIR)/lib/pppd/$(VERSION)
@@ -12,8 +16,7 @@ VERSION = $(shell awk -F '"' '/VERSION/ { print $$2; }' ../../patchlevel.h)
 INSTALL        = install
 
 PLUGIN=radius.so radattr.so radrealms.so
-CFLAGS ?= -O2
-CFLAGS += -I. -I../.. -I../../../include -fPIC -DRC_LOG_FACILITY=LOG_DAEMON
+CFLAGS = $(COPTS) -I. -I../.. -I../../../include -fPIC -DRC_LOG_FACILITY=LOG_DAEMON
 
 # Uncomment the next line to include support for Microsoft's
 # MS-CHAP authentication protocol.