From owner-freebsd-hackers Fri Nov 15 12:28: 1 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E50437B401 for ; Fri, 15 Nov 2002 12:28:00 -0800 (PST) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05DCA43E4A for ; Fri, 15 Nov 2002 12:28:00 -0800 (PST) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id 3D16BAE163; Fri, 15 Nov 2002 12:27:51 -0800 (PST) Date: Fri, 15 Nov 2002 12:27:51 -0800 From: Alfred Perlstein To: Matthew Dillon Cc: Nate Lawson , hackers@FreeBSD.ORG Subject: Re: cvs commit: src/bin/sleep sleep.c Message-ID: <20021115202751.GJ50692@elvis.mu.org> References: <200211151925.gAFJPsgh037805@apollo.backplane.com> <20021115194347.GG50692@elvis.mu.org> <200211152017.gAFKHbFS044142@apollo.backplane.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200211152017.gAFKHbFS044142@apollo.backplane.com> User-Agent: Mutt/1.4i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Matthew Dillon [021115 12:17] wrote: > :Will the knobs allow one to link /bin and /sbin against full blown > :libc? That would be nice as we can then start using pam and user > :management in / with dynamic modules (finally!). > : > :-- > :-Alfred Perlstein [alfred@freebsd.org] > > I think that should be a goal. I think something like this: > > USE_MINIC=YES Link against the mini-C library. > > USE_SHARED_BIN=YES Link against a shared libc or mini-C rather > then linking statically. Moiving forward I think it makes the most sense for us to maker /s?bin dynamically linked against libc by default with options for linking statically or dynamically against libc or mini-libc via make.conf. > All mini-C is is the full blown C library minus some of > the larger chunks of bloat. e.g. no locale, smaller > but less efficient malloc, and a trimmed down printf. > At least that is what it is turning out to be. Even > programs like /bin/rm require DBM and syslog. It can > get nasty real fast. > > Basically libminic will override particular source files > in libc to generate the smaller footprint. > > If we want to trim down mini-C further, removing things > like DBM, we could, but then we would not be able to use > mini-C for all of bin and sbin. I appreciate you taking the time and interest in this. It will help our embedded guys and give us all something new and interesting to play with. thanks, -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message