Date: Thu, 14 Dec 2000 23:18:41 +1100 (EST) From: Bruce Evans <bde@zeta.org.au> To: Benno Rice <benno@FreeBSD.ORG> Cc: freebsd-current@FreeBSD.ORG Subject: Re: Patch to allow overriding of nm in lorder, genassym.sh Message-ID: <Pine.BSF.4.21.0012142237280.3687-100000@besplex.bde.org> In-Reply-To: <20001213224645.A16171@rafe.jeamland.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 13 Dec 2000, Benno Rice wrote: > Does anyone object to me committing the attached patch? > > It basically allows the overriding of nm in lorder(1) and sys/kern/genassym.sh > using the environment variable NM. > > I've been using this locally as I've been building with 'powerpc-elf-nm' > rather than nm. > > Comments? Objections? Review? =) I don't like this much. I think I would prefer to use an extension of OBJFORMAT to control all binary utilites consistently. Where do you set NM and corresponding variables for other binary utilities? genassym.sh and lorder.sh are also missing support for the -aout/-elf command line option, and this breaks building of kernels in a non-native object format. I think the correct fix is is to set OBJFORMAT before running shell scripts that run binary utilities, not to clutter the shell scripts with code to select the correct binarary utility. Setting OBJFORMAT globally works in many cases, but not in kernel makefiles, because at least the aicasm needs to be built with the default object format. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0012142237280.3687-100000>