From owner-freebsd-questions Mon Jun 24 03:58:37 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id DAA04277 for questions-outgoing; Mon, 24 Jun 1996 03:58:37 -0700 (PDT) Received: from jraynard.demon.co.uk (jraynard.demon.co.uk [158.152.42.77]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id DAA04266 for ; Mon, 24 Jun 1996 03:58:31 -0700 (PDT) Received: (from fqueries@localhost) by jraynard.demon.co.uk (8.6.12/8.6.12) id BAA04520; Mon, 24 Jun 1996 01:19:27 GMT Date: Mon, 24 Jun 1996 01:19:27 GMT Message-Id: <199606240119.BAA04520@jraynard.demon.co.uk> From: James Raynard To: andrew@why.whine.com CC: questions@FreeBSD.ORG In-reply-to: (message from Andrew Herdman on Sun, 23 Jun 1996 20:20:09 -0400) Subject: Re: Creating a true static binary Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > 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? How are you creating the binary? 'gcc -static' worked for me on 2.1.0. -- James Raynard, Edinburgh, Scotland james@jraynard.demon.co.uk