User Tools

Site Tools


openssh

This is an old revision of the document!


static link openssh:

http://stackoverflow.com/questions/25464755/compiling-openssl-what-does-rodata-and-fpic-mean

download openssl and compile:

make clean && make dclean
export CFLAGS="-fPIC"  #necessary
./config shared no-ssl2 --prefix=/usr/local/openssl ... #shard option will also generate so
make depend
make

install openssh:

./configure --with-md5-passwords #necessary, or xcrypt.c cannot reference crypt()

modify Makefile, add -I/usr/local/openssl/include to CPPFLAGS,
modify -lcrypto of LIBS to /usr/local/openssl/lib/libcrypto.a

make && make install
openssh.1439872906.txt.gz · Last modified: by fe80:344f:717a:34cb:7947:db38:1099:3634

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki