Date: Mon, 06 Apr 2015 16:51:10 -0400 From: John Baldwin <john@baldwin.cx> To: freebsd-doc@freebsd.org Subject: Re: Wrong command in the FreeBSD wiki page about cross compiling Message-ID: <1821111.AlDnmihcOl@ralph.baldwin.cx> In-Reply-To: <5518EBEB.5080807@gmail.com> References: <5518EBEB.5080807@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1821111.AlDnmihcOl>