Sword cross-compilation knowledge

Compile openssl cross
 
Overview: because of work requirements, need transplants openssl open source library to arm machine 
PC environment:. Ubuntu14 04 64-Wei 
core board: mips linux 32 Wei 

1 , download the source code 
official website address (HTTPS: // www.openssl.org / source / old /) 

2. Execute config 
$ setarch i386. / config no-asm shared --prefix = / opt / soft / openssl 
Emphasis: 64-bit system cross-compilation openssl support running on 32-bit target board needs to be set: i386 setarch

 3 . modify the Makefile
 

search -m64 option and delete, a total of two. 

3. Generate the library file 
$ make && make install

 

Guess you like

Origin www.cnblogs.com/zhanggaofeng/p/12722759.html