二:编译
1、编译zlib
tar zxvf zlib-1.2.3.tar.gz
cd zlib-1.2.3/
./configure -prefix=/home/arm/sshwork/lib/zlib-1.2.3
修改Makefile :
CC=gcc 改为:
CC=arm-none-linux-gnueabi-gcc
LDSHARED= gcc 改为DSHARED=arm-none-linux-gnueabi-gcc
CPP= gcc - E 改为:CPP=arm-none-linux-gnueabi-gcc - E
AR= ar rc 改为:AR=arm-none-linux-gnueabi-ar rc
开始编译: make
make install
2、编译openssl
tar zxvf openssl-0.9.8l.tar.gz
cd openssl-0.9.8l/
./Configure --prefix=/home/arm/sshwork/lib/openssl-0.9.8l os/compiler:arm-none-linux-gnueabi-gcc
make
make install
3、编译openssh
tar zxvf openssh-5.6p1.tar.gz
cd openssh-5.6p1/
./configure -host=arm-none-linux-gnueabi -with-libs -with-zlib=/home/arm/sshwork/lib/zlib-1.2.3 -with-ssl-dir=/home/arm/sshwork/lib/openssl-0.9.8l -disable-etc-default-login
CC=arm-none-linux-gnueabi-gcc AR=arm-none-linux-gnueabi-ar
make(不要make install)
至此,编译工作完成