On Thu, Dec 14, 2000 at 11:18:41PM +1100, Bruce Evans wrote:
> 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?

The compilers et al (from what I can see) have an executable prefix (eg
powerpc-elf) compiled in.  This is overridable using things like
GCC_EXEC_PREFIX but using a scheme like this would still require putting
an environment variable into the scripts.  I'm happy to do it this way
if people prefer it though.  I chose the way I did it as it allows people
to set NM in Makefiles and have it used by the scripts in the same way CC
can be set and used.

> 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.

This doesn't fix my problem though.  The problem I'm facing is that the
command 'nm' is hardcoded into both genassym.sh and lorder.sh, when I
need to run 'powerpc-elf-nm'.  Even if we were to move that piece of config
into OBJFORMAT, it'd still require some kind of magic in the scripts.

Benno Rice

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to