From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,ff0122fac27fef70 X-Google-Attributes: gid111c93,public From: Tony Hammitt Subject: Re: Compiling against a static libots using Compaq ccc Date: 2000/07/06 Message-ID: <3964ED2F.11E55C62@kc.rr.com>#1/1 X-Deja-AN: 643194804 Content-Transfer-Encoding: 7bit References: <8k20c7$rtg$1@soap.pipex.net> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@rr.com X-Trace: typhoon.kc.rr.com 962915638 24.94.177.86 (Thu, 06 Jul 2000 15:33:58 CDT) MIME-Version: 1.0 Reply-To: thammitt@kc.rr.com NNTP-Posting-Date: Thu, 06 Jul 2000 15:33:58 CDT Newsgroups: comp.os.linux.alpha 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.