Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Tony Hammitt <thammitt@kc.rr.com>
Subject: Re: Compiling against a static libots using Compaq ccc
Date: 2000/07/06	[thread overview]
Message-ID: <3964ED2F.11E55C62@kc.rr.com> (raw)
In-Reply-To: 8k20c7$rtg$1@soap.pipex.net

How big of an executable can you stand? =-]

ccc supports the "-static" flag, just like gcc, but it's just as
literal as gcc.  You can't choose what you want to be statically
linked, you get everything including libc stuff.  I tried it on
a 60 line program and it linked to 2.1MB...  stripped to 380K

This, too is a bit ugly.

Regards,

Tony Hammitt


David Addison wrote:
> 
> Hi, does any one now how to make a dynamic executable that uses the the
> static libots library when using the Compaq ccc compiler ? I want to use
> ccc to compile my files, but not have to onward distribute the libots RPM
> (this is allowed under their licence terms).
> 
> The obvious method;
> 
> ccc -o blob blob.c /usr/lib/libots.a
> 
> still ends up with the 'blob' binary linked against libots.so
> I can compile to 'blob.o' and then use gcc to link, but that's a bit ugly.
> 
> Any other suggestions ?
> 
> Cheers,. Addy.



  reply	other threads:[~2000-07-06  4:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-07-06  4:00 Compiling against a static libots using Compaq ccc David Addison
2000-07-06  4:00 ` Tony Hammitt [this message]
2000-07-07  4:00   ` David Addison
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox