[openssl-dev] Help needed for cross-compiling openssl

Stefan.Neis at t-online.de Stefan.Neis at t-online.de
Mon Jun 15 15:22:58 UTC 2015


Hi, 

	> For other programs, after setting the environment variables
according to this guide, it is enough to run: 

	>        > > ./configure --host=mips-linux > make
> > I really need your help, because it doesn't wotk with OPENSSL.    

	That's because OpenSSL is not using autoconf but a Configure script
that's created by hand 

	(and supports even more platforms...), so linux' "standard" mechanism
just doesn't work. 

	    > I tried to investigate this in a large number of different ways
digging in the Configure, config, Makefile and so on, but with no luck
>  > Thank you very much in advance!   

	OpenSSL does things slightly different, but once you get used to it,
it's pretty cool. 

	For a starting point, you could try 

	"./Configure linux-generic32 --cross-compile-prefix=mips-linux" 

	 after setting the environment variables. This assumes:

	1. Your target platform is sufficiently similar to linux. You can
look into the Configure script to 

	    see many more platforms and  you could try if e.g. any of the
irix-mips<something>-gcc 

	    platform definitions are working for you (giving you the bonus of
MIPS assembler code). 

	   Also, if you want to dig into the details of the platform
definitions, you might want to add 

	   another one for you case. 

	2. The crosscompiler is named somthing like mips-linux-gcc, which
AFAIR is implied by the 

	    host parameter in your sample above. Anway, what you specify as
"--cross-compile-prefix" 

	    is the prefix, that gets prepended to all those calls to
compilation tools like gcc, ar, ld. 

	        HTH, 

	              Stefan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-dev/attachments/20150615/38c6803a/attachment.html>


More information about the openssl-dev mailing list