On Mon, Jan 30, 2006 at 03:42:08PM -0500, Josh Wyatt
wrote:> I'm wondering if it's possible to compile openssh-4.2p1 (portable)
statically.
> The platform is Linux 2.4 x86, openssl-0.9.7i, zlib-1.2.3, gcc-3.3.5.
Sure, as long as you have static versions of all required libraries
available (and they work, of course :-). Just do something like:
./configure --with-ldflags=-static
The only thing to watch out for is OS components that load modules at
runtime (eg nss or PAM modules). I'm not sure how those will behave.
--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.