From owner-freebsd-current@FreeBSD.ORG Tue Apr 29 00:36:38 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 A690035D for ; Tue, 29 Apr 2014 00:36:38 +0000 (UTC) Received: from mail-pa0-f41.google.com (mail-pa0-f41.google.com [209.85.220.41]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 78F811632 for ; Tue, 29 Apr 2014 00:36:38 +0000 (UTC) Received: by mail-pa0-f41.google.com with SMTP id kp14so3155327pab.0 for ; Mon, 28 Apr 2014 17:36:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=LzSVrlXhyjZ4treWG/O0IaS5X7HWZNKEsdF+kp+7kXg=; b=hJUeWrEGkZGm2H/YXMPG1XWGZIv/bCL7WiWmLYx8BuHsWYPo9pgxKVxAy4GVNwLTZw p3hZGrmAwJRHC3qx8fcJgkztFYFTGcdyk5jDvZCW4pygZlbZK/dUbULc2ZUsXQhylEVH O3DMXAuJHmI9egxLceS/09Bvo2w4jU+mTvAYo5r7qegDu3IVBwFDlgUO84Z+Pk5GPUiq aN5TcSY9A+X0W0nbaCuuy5BlPBF8vVO0zxheEM9+RrPQ6XT89xR7sf26h8EFi/FTTSAQ 14wGKdlvxOVVtabpvt8LQZlMMo7k5WllAFGvM898u4Pk/HJMg9D3uPHNxy1ltiO+/H7m m/1w== X-Gm-Message-State: ALoCoQm/ScdlecU6yZEeXx4Q7ZcuMJwu9OZZFSmH+1FaVDICdkTAzo5zzSVLaohd0122fhxco2w8 X-Received: by 10.66.177.168 with SMTP id cr8mr12036567pac.128.1398731797707; Mon, 28 Apr 2014 17:36:37 -0700 (PDT) Received: from [10.64.26.118] (dc1-prod.netflix.com. [69.53.236.251]) by mx.google.com with ESMTPSA id xz7sm99666336pac.3.2014.04.28.17.36.36 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 28 Apr 2014 17:36:37 -0700 (PDT) Sender: Warner Losh X-Google-Original-From: Warner Losh Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: Make variables to force non default libraries and includes? From: Warner Losh In-Reply-To: <535E07C9.5060309@freebsd.org> Date: Mon, 28 Apr 2014 18:36:34 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <80F941B9-3A54-4059-BF99-A5F59A9731DA@gmail.com> References: <535E07C9.5060309@freebsd.org> To: Julian Elischer X-Mailer: Apple Mail (2.1874) 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: Tue, 29 Apr 2014 00:36:38 -0000 On Apr 28, 2014, at 1:48 AM, Julian Elischer wrote: > I need to do the equivalent of "cd /usr/src/cddl/usr.sbin/dtrace; = make DESTDIR=3D/mumble all install=94 cd /usr/src make distributeworld DESTDIR=3D/mumble cd cddl/usr.sbin/dtrace make buildenv make all install > but it pulls in libraries from the base system, which differ slightly = from those in the source tree. The above will create the right /mumble hierarchy, and will pull the = libraries from the build rather than the local system. > How can I force it to use /mumble2/include and /mumble2/lib instead of = / ? >=20 > 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. >=20 > I know we do it in 'buildworld' is there a more generic way? >=20 > I have been looking in the .mk files but I haven't spotted it so far. You=92re asking for some serious split-brain action. chroot builds are = likely your best option. There=92s no easy way to force this, although = you might get some milage out of WMAKEENV options, but I think we bake = most of the where to look for things options into the binaries. One = crazy option would be to set CC=3D=93cc =97sysroot /mumble=94 but I=92m = sure there be dragons there=85 Good luck with this crazy, never have we supported it very well, option = :) Warner