OpenSSL cross-compilation without modifying Makefile
Use arm-none-linux-gnueabi-gcc to cross-compile openssl to generate static library files libcrypto. a and libssl.
1. download the latest openssl version from the openssl official website. I downloaded the openssl-1.0.2e. : Http://www.openssl.org/source/
2. Install arm-none-linux-gnueabi-gcc, download and decompress the package, and configure the environment variables.
3. decompress the openssl source code, enter the directory, and execute:
CC = arm-none-linux-gnueabi-gcc, modify the Compiler
./Config no-asm-static -- prefix =/usr/local/ssl-1.0.2/, configure, -- prefix for the installation directory
After the configuration is complete: manually modify the generated Makefile and find the location with-m64, delete all (2 in total)
Make & make install
For more information about OpenSSL, see the following links:
Use OpenSSL command line to build CA and Certificate
Install OpenSSL in Ubuntu
Provides FTP + SSL/TLS authentication through OpenSSL and implements secure data transmission.
Use OpenSSL to generate certificates in Linux
Use OpenSSL to sign multi-domain certificates
Add a custom encryption algorithm to OpenSSL
OpenSSL details: click here
OpenSSL: click here
This article permanently updates the link address: