[ale] Compiling ssh

Chris Fowler ChrisF at computone.com
Thu Dec 28 15:45:28 EST 2000





I believe it is --staic.  But does that link the whole library, including functions that are not used?




-----Original Message-----
From: Fulton Green [mailto:ale at FultonGreen.com]
To: ale at ale.org
Sent: Thursday, December 28, 2000 3:40 PM
To: Chris Fowler
Cc: ale at ale.org
Subject: Re: [ale] Compiling ssh



If you look hard enough through GCC help docs, there's probably a switch
mechanism that "turns on" static linking for libraries that follow it until
a "turns off" switch is encountered. The IBM CSet++ compiler had that
feature (I want to say the flags were something like -static and -dynamic).
I had to use it to force static binding of core C++ routines due to
incompatibilites btw versions of AIX.


On Thu, Dec 28, 2000 at 03:35:28PM -0500, Chris Fowler wrote:
> I'm compiling ssh and want to include the functions in libssl that are only
> used in ssh.
> 
> I'm only using th ssh client and lib ssl is too big to include in an
> embedded environment.  Is there a commnad line option for gcc that will
> statically link libssl into ssh and only link those parts that are being
> used?  Not the parts that are not?
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.







More information about the Ale mailing list