From owner-freebsd-toolchain@FreeBSD.ORG Thu May 9 05:13:39 2013 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id E4A998DF; Thu, 9 May 2013 05:13:39 +0000 (UTC) (envelope-from sjg@juniper.net) Received: from exprod7og118.obsmtp.com (exprod7og118.obsmtp.com [64.18.2.8]) by mx1.freebsd.org (Postfix) with ESMTP id A49841D93; Thu, 9 May 2013 05:13:39 +0000 (UTC) Received: from P-EMHUB02-HQ.jnpr.net ([66.129.224.36]) (using TLSv1) by exprod7ob118.postini.com ([64.18.6.12]) with SMTP ID DSNKUYswg0wwq4joRc0PhASxdYIEe6Mk3MsU@postini.com; Wed, 08 May 2013 22:13:39 PDT Received: from magenta.juniper.net (172.17.27.123) by P-EMHUB02-HQ.jnpr.net (172.24.192.33) with Microsoft SMTP Server (TLS) id 8.3.213.0; Wed, 8 May 2013 21:58:34 -0700 Received: from chaos.jnpr.net (chaos.jnpr.net [172.24.29.229]) by magenta.juniper.net (8.11.3/8.11.3) with ESMTP id r494wYL13752; Wed, 8 May 2013 21:58:34 -0700 (PDT) (envelope-from sjg@juniper.net) Received: from chaos.jnpr.net (localhost [127.0.0.1]) by chaos.jnpr.net (Postfix) with ESMTP id 2E67058097; Wed, 8 May 2013 21:58:34 -0700 (PDT) To: Warner Losh Subject: Re: [RFC] adding a variable to .mk and Makefile.inc1 to point to top of the FreeBSD source tree In-Reply-To: <9CD1CE3E-C17C-4C63-BA03-190531185D7A@bsdimp.com> References: <20130507213118.5277F58097@chaos.jnpr.net> <20130508054121.DCA7258097@chaos.jnpr.net> <9CD1CE3E-C17C-4C63-BA03-190531185D7A@bsdimp.com> Comments: In-reply-to: Warner Losh message dated "Wed, 08 May 2013 15:49:12 -0600." From: "Simon J. Gerraty" X-Mailer: MH-E 7.82+cvs; nmh 1.3; GNU Emacs 22.3.1 Date: Wed, 8 May 2013 21:58:34 -0700 Message-ID: <20130509045834.2E67058097@chaos.jnpr.net> MIME-Version: 1.0 Content-Type: text/plain Cc: Garrett Cooper , freebsd-toolchain@freebsd.org, "freebsd-arch@FreeBSD.org Arch" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 May 2013 05:13:40 -0000 >> Do you mean why not simply use ${MACHINE}.${MACHINE_ARCH} always? >> Encoding both MACHINE and MACHINE_ARCH always is doable, but I avoid = >'.' Actually I only avoid '.' in the captured dirdeps. So ${MACHINE}.${MACHINE_ARCH} in objdir may be ok - will take a look. Dealing with ${MACHINE}.${MACHINE_ARCH} is actually easy it just gets stripped from the captured dirdeps, it is references to other machine and arch's that need to be captured but cannot be dealt with as neatly. The vast majority of such cases though are for pseudo machines like "host" and "common" (for generated files which are machine independent) where the issue shouldn't arise anyway.