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 _______________________________________________ freebsd-doc@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-doc To unsubscribe, send any mail to "freebsd-doc-unsubscr...@freebsd.org"