From owner-cvs-src@FreeBSD.ORG Tue Aug 19 08:24:17 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 51E2216A4BF; Tue, 19 Aug 2003 08:24:17 -0700 (PDT) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 56AE843F3F; Tue, 19 Aug 2003 08:24:16 -0700 (PDT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.9/8.12.3) with ESMTP id h7JFNuFL067430; Tue, 19 Aug 2003 09:23:56 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 19 Aug 2003 09:23:07 -0600 (MDT) Message-Id: <20030819.092307.61268786.imp@bsdimp.com> To: paul@freebsd-services.com From: "M. Warner Losh" In-Reply-To: <1061285875.8010.63.camel@localhost> References: <200308170840.h7H8endW060225@repoman.freebsd.org> <1061285875.8010.63.camel@localhost> X-Mailer: Mew version 2.1 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: gordon@FreeBSD.org cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sbin/devd Makefile X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Aug 2003 15:24:17 -0000 In message: <1061285875.8010.63.camel@localhost> Paul Richards writes: : On Sun, 2003-08-17 at 09:40, Gordon Tetlow wrote: : > gordon 2003/08/17 01:40:49 PDT : > : > FreeBSD src repository : > : > Modified files: : > sbin/devd Makefile : > Log: : > At imp's request, force devd to be statically compiled. This avoids the : > need for libstdc++ in /lib, and the generated binary is actually smaller : > statically linked than dynamically + sizeof(libstdc++). Additionally, : > devd doesn't use get*by*() which is one of the main motivations for : > dynamically linking your root partition anyway. : : How many binaries actually use get*by*? : : Wouldn't it be a little more sensible to just make those dynamic and : leave the rest static? : : Would we even need /rescue then? We could just have static versions of : the dynamic binaries as well. That's a different approach. There are many motivating factors for having a dynamic root: saving space, get*by* working, any pluggable 'thing' that wants a shared library can get at it, easier upgrades for security flaws, etc. Given that all of these factors came into play, it seems more reasonable to have a dynamic root. There were two issues with making devd static: 1) it is a lot smaller than haging libstd++ (which isn't the case for all the other libraries) and 2) there were issues with crunchgen and c++ programs. Making it static just cleans things up a bit. What is or isn't in /rescue can be talked to death. Warner