Subject: Re: make and ELF (PR bin/5445)
To: Jason Thorpe <thorpej@nas.nasa.gov>
From: Simon Burge <simonb@telstra.com.au>
List: tech-toolchain
Date: 05/14/1998 09:20:28
On Wed, 13 May 1998 10:56:49 -0700 Jason Thorpe wrote:
> On Wed, 13 May 1998 23:41:29 +1000
> Simon Burge <simonb@telstra.com.au> wrote:
>
> > /usr/src/include/ranlib.h:
> >
> > #if !defined(__ELF__)
> > #define RANLIBMAG "__.SYMDEF" /* archive file name */
> > #endif
> >
> > /usr/src/usr.bin/make/Makefile:
> >
> > CPPFLAGS+= -I${.CURDIR}
> > .if (${OBJECT_FMT} == ELF)
> > CPPFLAGS+= -D__ELF__
> > .endif
>
> This latter part should not be necessary. All Elf-format toolchains for
> NetBSD should be defining __ELF__ already.
Hmm, a quick look though the gcc part of the tree fails to show where
any port would make a #define of the object file format available. I
have only access to NetBSD/{sparc,i386,pmax} and none of these have
defines for either __AOUT__ or __ELF__. Does gcc for Alpha define
__ELF__, and how is it done if it does?
Simon.