cross compile

Cross compiling openssl - How to cross compile openssl

openssl doesn't use the standard ./configure && make setup, but configuring and cross compiling is amazingly simple.

Three simple steps.

  • Set the host/compiler prefix.

Here it is important not to miss the '-' on the end of the host prefix eg:

export cross=mipsel-linux-

  • Configure openssl.

Note the uppercase 'C' in Configure.

./Configure dist

  • Make openssl libs.

make CC="${cross}gcc" AR="${cross}ar r" RANLIB="${cross}ranlib"

Now copy the headers and libs as needed.

Syndicate content