zlib:
gcp@gcp-ThinkPad-T430:~/cross_compile/openssh_hisi/zlib-1.2.3$ ./configure –shared –prefix=${PWD}/_install
修改Makefile
+CC=arm-hisiv100nptl-linux-gcc
+LDSHARED=arm-hisiv100nptl-linux-gcc -shared -Wl,-soname,libz.so.1 –verion-script, zlib.map
+CPP=arm-hisiv100nptl-linux-gcc -E
+AR=arm-hisiv100nptl-linux-ar rc
+RANLIB=arm-hisiv100nptl-linux-ranlib
make
make install
将libz.so.1.2.3 copy到板子的/lib 下 ,可能需要在板子上做个链接 libz.so.1 -> libz.so.1.2.3openssl:
gcp@gcp-ThinkPad-T430:~/cross_compile/openssh_hisi/openssl-1.0.1j$ ./Configure shared –prefix=${PWD}/_intall linux-armv4 注意为大写C开头
修改Makefile
CC、AR、MAKEDEPPROG 为arm-linux
make
make install
将libcrypto.so.1.0.0 libssl.so.1.0.0copy到板子的/lib 下openssh:
gcp@gcp-ThinkPad-T430:~/cross_compile/openssh_hisi/openssh-5.6p1$ ./configure –host=arm-hisiv100nptl-linux –disable-etc-default-login CC=arm-hisiv100nptl-linux-gcc AR=arm-hisiv100nptl-linux-ar –with-ssl-dir=/home/gcp/cross_compile/openssh_hisi/openssl-1.0.1j/_install –with-zlib=/home/gcp/cross_compile/openssh_hisi/zlib-1.2.3/_install
make
不要make isntall
cp sshd ssh-keygen 到板子上免责声明:文章内容来自互联网,本站不对其真实性负责,也不承担任何法律责任,如有侵权等情况,请与本站联系删除。
转载请注明出处:交叉编译openssl https://www.yhzz.com.cn/a/22112.html