From owner-freebsd-current Wed Oct 30 14:46:18 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4958A37B404 for ; Wed, 30 Oct 2002 14:46:17 -0800 (PST) Received: from swan.mail.pas.earthlink.net (swan.mail.pas.earthlink.net [207.217.120.123]) by mx1.FreeBSD.org (Postfix) with ESMTP id D87B443E77 for ; Wed, 30 Oct 2002 14:46:16 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0465.cvx40-bradley.dialup.earthlink.net ([216.244.43.210] helo=mindspring.com) by swan.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 1871b5-00001s-00; Wed, 30 Oct 2002 14:45:59 -0800 Message-ID: <3DC060DB.EF58A009@mindspring.com> Date: Wed, 30 Oct 2002 14:44:43 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Peter Wemm Cc: Nate Lawson , current@freebsd.org Subject: Re: libc size References: <20021030214158.CB6EA2A88D@canning.wemm.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Peter Wemm wrote: > Terry Lambert wrote: > > Nate Lawson wrote: > > > Here is a link to the size of various components of libc, sorted by text > > > size. If you can find some way to reduce or even remove some of this, > > > please submit a patch. > > > > > > http://www.root.org/~nate/freebsd/lib_size.out > > > > Move the resolver code out to ibresolv.so, and link libc.so > > against libresolv.so so that legacy applications are happy, as > > long as they are compiled shared. Non-network apps can ignore > > most of it. Internal use of some of the biggest chunks is > > limited, so this should avoid dragging in a lot of it. > > We've been over this before. To make this work right, we need to make > /bin and /sbin dynamically linked. NetBSD's /rescue/* approach would > solve the "oops!" and other foot shooting problems. Or add: LDFLAGS+= -lresolv To the Makefiles of the things that need to be statically linked, and access the network code. I'm going to go out on a limb here, though, and guess that without a resolv.conf, most of the resolver library is going to be really useless. 8-) 8-). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message