How to cross-compile OpenSSL for ARM
来源:互联网 发布:ubuntu终端不支持中文 编辑:程序博客网 时间:2024/05/07 03:39
In a nutshell:
/opt/arm% wget http://www.openssl.org/source/openssl-0.9.7d.tar.gz && tar xvzf openssl-0.9.7d.tar.gz && cd openssl-0.9.7d
/opt/arm/openssl-0.9.7d% ./Configure linux-elf-arm --prefix=/usr
Then set your environment so a gcc 3.3-based ARM crosscompiler (OpenZaurus 3.3.1 in /usr/local/arm/3.3 will be fine) is in your $PATH, and patch your Makefile to use this cross-compiler (the patch also contains a linking instruction to libdl, needed to get the openssl binary):
/opt/arm/openssl-0.9.7d% export PATH=/usr/local/arm/3.3/bin:$PATH
/opt/arm/openssl-0.9.7d% wget -N http://people.via.ecp.fr/~clem/nist/opensslForARM.Makefile.patch && patch -p1 < opensslForARM.Makefile.patch
You can compile it now! (after setting DISTCC to /usr/bin/distcc, DISTCC_HOSTS to your distcc hosts, and using make -j DISTCC_HOSTS*2, for example, instead of make to distribute compiling if you want and can):
/opt/arm/openssl-0.9.7d% make && make build-shared
You can do the following if you want (that way
/opt/arm/openssl
will be your local OpenSSL dir, its includes will be in include
and its libs in lib
):/opt/arm/openssl-0.9.7d% mkdir lib && cd lib && ln -s ../libcrypto* ../libssl* . && cd ../.. && ln -s openssl-0.9.7d openssl
- How to cross-compile OpenSSL for ARM
- How to cross-compile Chromium for ARM
- How To Cross Compile Python 2.5.2 For ARM -- by Border
- How To Compile OpenSSL for the iPhone
- How to cross compile the PPP to arm-xscale
- How to Cross Compile the Bash shell for Android 1.5
- How to compile openssl library
- Cross Compile Python 2.5.2 For ARM
- cross compile toolchain for arm/android
- cross compile qt5everywhere for arm CortexA8
- How to Cross Compile the Busybox
- cross compile openssl
- How to Cross Compile the Bash shell for Android 1.5 (为Android平台编译Bash shell)
- QtCreator on Windows to Cross Compile for Linux ARM with CodeSourcery Toolchain
- linux arm cross-compile
- FFTW ARM cross compile
- How to cross compile and use hcidump-1.42
- How to Cross Compile the wireless_tools(iwconfig iwlist)
- 智能JSP表单WING-JSPFormWizard 正式发布
- Mandriva 的起源
- [精华] 跟我一起写 Makefile
- 用GDB调试程序
- 一点安全知识,请相互转告!(zt)
- How to cross-compile OpenSSL for ARM
- 正则表达式大全(regular expression)
- Java程序编码规范
- [书摘]Cleanup Issues
- 模板下载站点
- 使用DB2 II创建DB2 UDB和Informix IDS的邦联数据库
- IDbCommand.Prepare()方法。
- java开发资源大全
- SQL语法