From owner-freebsd-doc@FreeBSD.ORG Mon Apr 6 21:21:18 2015 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 951B8BDA for ; Mon, 6 Apr 2015 21:21:18 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6DB17822 for ; Mon, 6 Apr 2015 21:21:18 +0000 (UTC) Received: from ralph.baldwin.cx (pool-173-54-116-245.nwrknj.fios.verizon.net [173.54.116.245]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 4A9ADB94F; Mon, 6 Apr 2015 17:21:17 -0400 (EDT) From: John Baldwin To: freebsd-doc@freebsd.org Subject: Re: Wrong command in the FreeBSD wiki page about cross compiling Date: Mon, 06 Apr 2015 16:51:10 -0400 Message-ID: <1821111.AlDnmihcOl@ralph.baldwin.cx> User-Agent: KMail/4.14.2 (FreeBSD/10.1-STABLE; KDE/4.14.2; amd64; ; ) In-Reply-To: <5518EBEB.5080807@gmail.com> References: <5518EBEB.5080807@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Mon, 06 Apr 2015 17:21:17 -0400 (EDT) X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Apr 2015 21:21:18 -0000 On Monday, March 30, 2015 06:23:39 AM Raven Iqqe wrote: > Hi, all. > > The command in FreeBSD wiki page, "A_Brief_Guide_To_Cross_Compiling_FreeBSD" > (https://wiki.freebsd.org/A_Brief_Guide_To_Cross_Compiling_FreeBSD) > seems to be wrong. > In the "Build World" section of the "Building and Installing World" > part, it says; > > % make buildworld TARGET=arm TARGET_ARCH=armeb > MAKEOBJDIRPREFIX=/home/bob/obj > > But, for some reason, setting MAKEOBJDIRPREFIX as a command line > argument should not > be done as that is described in man page build(7). The correct one is below; > > % MAKEOBJDIRPREFIX=/home/bob/obj make buildworld TARGET=arm > TARGET_ARCH=armeb > > or exporting it as a persistent environment variable, > > % export MAKEOBJDIRPREFIX=/home/bob/obj > % make buildworld TARGET=arm TARGET_ARCH=armeb Correct, you have to set that variable in the environment. This appears to be an error in the wiki page as the referenced e-mail thread on the page sets it in the environment. I've just updated the wiki with directions that should work regardless of shell using env(1). -- John Baldwin