Creating statically linked sshd binary
Luc I. Suryo
luc at suryo.com
Tue Jan 21 17:20:44 EST 2003
> Is there an easy way to do this?
hmm sure .. except there will be some system library that always will be
dynamic, nothing you can do about that!
a) compile zlib static , or move/delete the shared libs so the compiler
will not find them!
b) compile openssk static , or move/delete the shared libs so the
compiler will not find them!
c) compile openssh
on my system i have static linked sshd/ssh:
ldd sshd
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libc.so.1 => /usr/lib/libc.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libmp.so.2 => /usr/lib/libmp.so.2
/usr/platform/SUNW,Ultra-30/lib/libc_psr.so.1
ldd ssh
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libc.so.1 => /usr/lib/libc.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libmp.so.2 => /usr/lib/libmp.so.2
/usr/platform/SUNW,Ultra-30/lib/libc_psr.so.1
As you can see no other then system libs is needed, this is on a Sun
Sparc system but can be done with linux too ... just need to be handy
with configure :)
have fun!
btw e-mail to your e-mail bounced!!!
--
Kind regards,
Luc Suryo
More information about the openssh-unix-dev
mailing list