]> git.ozlabs.org Git - ppp.git/commit
Add cross-compilation support on Linux
authorPaul Mackerras <paulus@ozlabs.org>
Fri, 1 Jan 2021 08:44:07 +0000 (19:44 +1100)
committerPaul Mackerras <paulus@ozlabs.org>
Fri, 1 Jan 2021 08:55:24 +0000 (19:55 +1100)
commit4087ec556b1ccee15d8e97153f3800b79982f8ba
tree5f0bddefef66625b7d3a734dfcf0c89cb6ad9f68
parent248c11d375c54a8b5fc61c6659be2f8826e889ec
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>
chat/Makefile.linux
configure
pppd/Makefile.linux
pppd/plugins/Makefile.linux
pppd/plugins/pppoatm/Makefile.linux
pppd/plugins/pppoe/Makefile.linux
pppd/plugins/pppol2tp/Makefile.linux
pppd/plugins/radius/Makefile.linux
pppdump/Makefile.linux
pppstats/Makefile.linux