From owner-freebsd-current Fri Mar 13 21:03:14 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA10927 for freebsd-current-outgoing; Fri, 13 Mar 1998 21:03:14 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from cimlogic.com.au ([203.36.2.25]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA10921 for ; Fri, 13 Mar 1998 21:03:08 -0800 (PST) (envelope-from jb@cimlogic.com.au) Received: (from jb@localhost) by cimlogic.com.au (8.8.5/8.8.7) id QAA16504; Sat, 14 Mar 1998 16:04:36 +1100 (EST) (envelope-from jb) From: John Birrell Message-Id: <199803140504.QAA16504@cimlogic.com.au> Subject: Re: binutils bloat In-Reply-To: <199803140447.UAA03267@dingo.cdrom.com> from Mike Smith at "Mar 13, 98 08:47:53 pm" To: mike@smith.net.au (Mike Smith) Date: Sat, 14 Mar 1998 16:04:35 +1100 (EST) Cc: jb@cimlogic.com.au, current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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