Re: Cross Compiling "make programs" patch
Michael Richardson <[email protected]> Thu, 20 Feb 2003 20:37:32 -0500
| Newsgroups | gmane.network.freeswan.devel |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- >>>>> "Ken" == Ken Bantoft <[email protected]> writes: Ken> Compared to 1.99, 2.00 is remarkably easier to cross compile. Most Ken> of this is due to centralizing all of the programs under programs/, Good to hear. Ken> Now, to cross compile, I just export the conventional environment Ken> variables like so: Ken> export CC=/opt/Embedix/tools/bin/arm-linux-gcc export Ken> LD=/opt/Embedix/tools/bin/arm-linux-ld export Ken> RANLIB=/opt/Embedix/tools/bin/arm-linux-ranlib export Ken> AR=/opt/Embedix/tools/bin/arm-linux-ar export Ken> AS=/opt/Embedix/tools/bin/arm-linux-as export Ken> LD_LIBRARYPATH=/z/zeeswan-2.00/zaurus/libs export Ken> KERNEL_SRC=/z/bk-buildroot/build/linux Ken> And "make programs" now builds using the correct gcc, ld, etc... and Ken> links against binary Zaurus libs I place in Ken> /z/zeeswan-2.00/zaurus/libs (currently, this is libgmp.so) Ken> Thoughts? Should defaults go into Makefile.inc? I think that it is okay, because "make" has defaults for it all. So, I committed your patch. ] ON HUMILITY: to err is human. To moo, bovine. | firewalls [ ] Michael Richardson, Sandelman Software Works, Ottawa, ON |net architect[ ] [email protected] http://www.sandelman.ottawa.on.ca/ |device driver[ ] panic("Just another Debian GNU/Linux using, kernel hacking, security guy"); [ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) Comment: Finger me for keys iQCVAwUBPlWC24qHRg3pndX9AQFyzgP8Dc22p/OyWLvcDJlPTZHIMGjN5g1KZNSL ZeHB+y7bzA95cmATjP1up2grpHZJ8jXvkT02SJQejpQ3KznLDfEgrbnG8VIF9xNd sKyfqydLYyc+yMyEg+X1a9vBUjooxWkjpwvJnBLbOancQjfSR1zYLUogvhSjtIEr 0FtM4+Q/fUk= =BzNs -----END PGP SIGNATURE-----