2011年2月27日 星期日

cross compile openssl

download openssl from http://www.openssl.org/

The makefile is already exist, just modify Makefile without config. The modified configuration as shown below.

#you want to make install directory.
INSTALLTOP=/home/joe/test_program/openssl-1.0.0d/out
OPENSSLDIR=/home/joe/test_program/openssl-1.0.0d/out

CC= arm-none-linux-gnueabi-gcc
CFLAG= -O
DEPFLAG= -DOPENSSL_NO_GMP -DOPENSSL_NO_JPAKE -DOPENSSL_NO_MD2 -DOPENSSL_NO_RC5 -DOPENSSL_NO_RFC3779 -DOPENSSL_NO_STORE
PEX_LIBS=
EX_LIBS=
EXE_EXT=
ARFLAGS=
AR= arm-none-linux-gnueab-ar $(ARFLAGS) r
RANLIB= arm-none-linux-gnueab-ranlib
NM= nm
PERL= /usr/bin/perl
TAR= tar
TARFLAGS= --no-recursion
MAKEDEPPROG=makedepend

modified complete, type make, make install as usual.


沒有留言:

張貼留言