Well, I forgot to put OpenSSL into my Disko cross compilation (here). Hence, I need to download the latest OpenSSL and cross compile it too.
OpenSSL uses different configuration script (not the standard autoconf script..), and run by Perl. After working almost one night non-stop, I finally figure out how to configure OpenSSL-1.0.0b for cross compilation
# tar xvjf openssl-1.0.0b.tar.gz # cd openssl-1.0.0b # ./Configure --prefix=$(HOST_DIR) zlib-dynamic "linux-arm926ej-s":"arm-none-linux-gnueabi-gcc:-DTERMIO -O3 -Wall -I../../host/include::-D_REENTRANT::-L../../host/lib -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR::bn_asm.o armv4-mont.o::aes_cbc.o aes-armv4.o:::sha1-armv4-large.o sha256-armv4.o sha512-armv4.o:::::::void:dlfcn:linux-shared:-fPIC::.so.1.0.0":arm-none-linux-gnueabi-ranlib:: # make # make install
No sed, no awk, no regex to change the Configure script. Just change the $CC according to your cross-compiler-gcc and $CROSS_RANLIB with your cross-compiler-ranlib. The $(HOST_DIR)/include and $(HOST_DIR)/lib must have ARM’s zlib library and header files.
Now I need to update my Disko cross compile Makefile script..