From owner-freebsd-current@FreeBSD.ORG Mon Apr 28 12:19:47 2014 Return-Path: Delivered-To: current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 313A048A; Mon, 28 Apr 2014 12:19:47 +0000 (UTC) Received: from mho-01-ewr.mailhop.org (mho-03-ewr.mailhop.org [204.13.248.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 05F9C150F; Mon, 28 Apr 2014 12:19:46 +0000 (UTC) Received: from c-24-8-230-52.hsd1.co.comcast.net ([24.8.230.52] helo=damnhippie.dyndns.org) by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1WekXB-000Iri-HW; Mon, 28 Apr 2014 12:19:45 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id s3SCJhZW014950; Mon, 28 Apr 2014 06:19:43 -0600 (MDT) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 24.8.230.52 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX19QV1BWeEIuulsWYF8O9ubc Subject: Re: Make variables to force non default libraries and includes? From: Ian Lepore To: Julian Elischer In-Reply-To: <535E083A.9060906@freebsd.org> References: <535E083A.9060906@freebsd.org> Content-Type: text/plain; charset="us-ascii" Date: Mon, 28 Apr 2014 06:19:43 -0600 Message-ID: <1398687583.61646.207.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: FreeBSD Current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Apr 2014 12:19:47 -0000 On Mon, 2014-04-28 at 15:50 +0800, Julian Elischer wrote: > I need to do the equivalent of "cd /usr/src/cddl/usr.sbin/dtrace; > make DESTDIR=/mumble all install" > > but it pulls in libraries from the base system, which differ slightly > from those in the source tree. > > How can I force it to use /mumble2/include and /mumble2/lib instead of / ? > > I can pre-populate /mumble2 using "make buildworld", "make libraries", > and "make includes" but > I need to be able to do selective builds of just subdirectories after > that.. I haven't spotted the right way of forcing the use of the > "--system_root /mumble2" option in the compiles. > > I know we do it in 'buildworld' is there a more generic way? > > I have been looking in the .mk files but I haven't spotted it so far. > > An option woudl be a way to 'enter' a buildworld and just rebuild or > reinstall small specified parts of it. > Unfortunately at the moment I see no option other than a lot of > WITHOUT_XXX and 'build everything'. > > > Julian The 'buildenv' target does the "enter a buildworld" thing. Just "make buildenv" and you get a shell with all the environment variables set up for doing builds (or cross-builds if you set TARGET_ARCH) within that source tree. If csh isn't your favorite shell, set BUILDENV_SHELL in your environment. There's also a "buildenvvars" target that will let you capture the environment you need so that you can use it within your own build scripts without needing an interactive shell. -- Ian