Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jun 1996 20:59:01 -0400
From:      Andrew Herdman <andrew@why.whine.com>
To:        Chuck Robey <chuckr@Glue.umd.edu>
Cc:        questions@freebsd.org
Subject:   Re: Creating a true static binary
Message-ID:  <Pine.BSF.3.91.960623205710.6315B-100000@why>
In-Reply-To: <Pine.OSF.3.91.960623205421.10774A-100000@ginger.eng.umd.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 23 Jun 1996, Chuck Robey wrote:

> On Sun, 23 Jun 1996, Andrew Herdman wrote:
> 
> > I've noticed that whenever I create a static binary for people, that libc 
> > is never included (perhaps others as well?) in the binary.  This started 
> > becomming a problem when I moved up to 2.2-960501-SNAP where libc changed 
> > from 2.2 to 3.0.  Is there a way to have the binary include everything it 
> > needs into itself so that no libraries are necessary?
> 
> Realize that doing what you ask is going to create huge binaries, but I 
> guess that's your lookout ... just link your program with the -static 
> option (check the gcc man page).

Yes I know the binaries will be huge, even without libc they are huge 
(thanks to motif) I've tried -static with no luck, my associates who have 
gotten the binaries I have created have reported that they complained 
about the missing libc.so.3.0, but they didn't complain about any missing 
motif libraries.

Andrew




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.960623205710.6315B-100000>