Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Mar 1998 16:04:35 +1100 (EST)
From:      John Birrell <jb@cimlogic.com.au>
To:        mike@smith.net.au (Mike Smith)
Cc:        jb@cimlogic.com.au, current@FreeBSD.ORG
Subject:   Re: binutils bloat
Message-ID:  <199803140504.QAA16504@cimlogic.com.au>
In-Reply-To: <199803140447.UAA03267@dingo.cdrom.com> from Mike Smith at "Mar 13, 98 08:47:53 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Mike Smith wrote:
> > For gas, a few subdirs of src/gnu/usr.bin/binutils with optional
> > defines could build gas_m68k etc. But only if you enabled something
> > in /etc/make.conf.
> 
> Erk.  That's kinda ugly; this isn't something that could be trivially 
> automated I suppose.

It was born ugly (GPL). Automated? I'm not sure. Somewhere you have
to store the config and it's not just a matter of running `configure'
To me, the simplest way of storing that config is to chuck it in
a makefile, like the one that builds gas for i386:

BINDIR=     /usr/libexec/elf
SRCS+=      tc-i386.c

(yes, that's the entire makefile)

or alpha:

BINDIR=     /usr/bin
SRCS+=      tc-alpha.c
LDADD+=     -L${RELTOP}/libopcodes -lopcodes

(more complicated).

The cross version would probably be significantly more complicated,
because it would have to specify the program name and target architecture.
(2 more lines?) Trying to automate this sounds like over-kill to me.

-- 
John Birrell - jb@cimlogic.com.au; jb@freebsd.org
CIMlogic Pty Ltd, GPO Box 117A, Melbourne Vic 3001, Australia +61 418 353 137

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?199803140504.QAA16504>