From owner-freebsd-current Sun Mar 23 5:43:18 2003 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 9AE8F37B404 for ; Sun, 23 Mar 2003 05:43:16 -0800 (PST) Received: from HAL9000.homeunix.com (12-233-57-131.client.attbi.com [12.233.57.131]) by mx1.FreeBSD.org (Postfix) with ESMTP id A4B9043FA3 for ; Sun, 23 Mar 2003 05:43:15 -0800 (PST) (envelope-from das@FreeBSD.ORG) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.6/8.12.5) with ESMTP id h2NDhEov000436; Sun, 23 Mar 2003 05:43:14 -0800 (PST) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.6/8.12.5/Submit) id h2NDgxvX000421; Sun, 23 Mar 2003 05:42:59 -0800 (PST) (envelope-from das@FreeBSD.ORG) Date: Sun, 23 Mar 2003 05:42:59 -0800 From: David Schultz To: David Leimbach Cc: freebsd-current@FreeBSD.ORG Subject: Re: "Just" building the lib part of world Message-ID: <20030323134259.GA368@HAL9000.homeunix.com> Mail-Followup-To: David Leimbach , freebsd-current@FreeBSD.ORG References: <801E9942-5D33-11D7-AFCD-0003937E39E0@mac.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <801E9942-5D33-11D7-AFCD-0003937E39E0@mac.com> 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 Thus spake David Leimbach : > Or even better would be just building libc. I have been working on my > getpwnam_r assignment... > examining implementations in both Darwin and NetBSD and started trying > to implement some of > this code for FreeBSD... Its not anywhere even near the goal in sight > as I am still learning the > build system. > > Do I always have to build world or can I get away with just making some > subdirectories? If so > what is the best way to do this? > > Rebuilding gcc each time I just want to test out my code is a real drag > :) Try: cd src/lib/libc && make && make install That will remake any modified files in libc and install libc. You can remake all files by doing a 'make clean' first. Note that if you have not previously populated an object directory (e.g. with 'make world', the object files will be placed in src/lib/libc. You may also want to try make -DNOCLEAN buildworld which recompiles only the sources that have changed and things that depend on them. Keep in mind that the well-documented approach is conservative to prevent people from shooting themselves in the foot, so you need to be careful. For instance, if your libc changes break ABI compatability, you could screw yourself over with the approach above. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message