diff options
author | Paul Mackerras <paulus@ozlabs.org> | 2021-01-01 19:44:07 +1100 |
---|---|---|
committer | Paul Mackerras <paulus@ozlabs.org> | 2021-01-01 19:55:24 +1100 |
commit | 4087ec556b1ccee15d8e97153f3800b79982f8ba (patch) | |
tree | 5f0bddefef66625b7d3a734dfcf0c89cb6ad9f68 /pppstats | |
parent | 248c11d375c54a8b5fc61c6659be2f8826e889ec (diff) | |
download | ppp-4087ec556b1ccee15d8e97153f3800b79982f8ba.tar.gz |
Add cross-compilation support on Linux
This adds three new command-line options to the configure script:
--cross_compile=<prefix> (default "")
--cc=<compiler> (default cc)
--cflags=<compile flags> (default -g -O2 -pipe)
These get propagated to the Makefiles in the subdirectories. The
cross-compile prefix is prepended to the CC value, so for example
if you do "./configure --cross_compile=powerpc64le-linux-" then
everything gets compiled and linked using powerpc64le-linux-cc.
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Diffstat (limited to 'pppstats')
-rw-r--r-- | pppstats/Makefile.linux | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pppstats/Makefile.linux b/pppstats/Makefile.linux index 1819370..ddfe0cc 100644 --- a/pppstats/Makefile.linux +++ b/pppstats/Makefile.linux @@ -1,7 +1,10 @@ # # pppstats makefile -# $Id: Makefile.linux,v 1.9 2006/06/04 05:07:46 paulus Exp $ # +CROSS_COMPILE=@CROSS_COMPILE@ +CC=$(CROSS_COMPILE)@CC@ +COPTS=@CFLAGS@ + DESTDIR = $(INSTROOT)@DESTDIR@ BINDIR = $(DESTDIR)/sbin MANDIR = $(DESTDIR)/share/man/man8 @@ -9,8 +12,6 @@ MANDIR = $(DESTDIR)/share/man/man8 PPPSTATSRCS = pppstats.c PPPSTATOBJS = pppstats.o -#CC = gcc -COPTS = -O COMPILE_FLAGS = -I../include LIBS = |