Subject: Re: how to determine if the os is elf or a.out while building pkg
To: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>
From: Alistair Crooks <agc@pkgsrc.org>
List: tech-pkg
Date: 03/01/2001 09:10:41
On Thu, Mar 01, 2001 at 04:16:11AM +0100, Hubert Feyrer wrote:
> On Wed, 28 Feb 2001, John Refling wrote:
> > I have software which I'm packaging which wants to read its own symbol
> > tables and stuff, so there is a.out code and elf code to do this.  Is
> > there a pkg variable which I can test to determine this?
> 
> no, but you can test output of "make show-shlib-type". See bsd.pkg.mk for
> some examples. 

That is for "shared libs".  If it's simply the a.out/ELF decision that
you have to take, ${OBJECT_FMT} is the one.  It's pulled in from
<bsd.own.mk>

> > Also, where can I find out which ports and which versions thereof use
> > elf or a.out format?
> 
> I don't think there's a table somewhere. 

<bsd.own.mk> will give you a good idea.  If it's historical
information you want, there's anoncvs and cvsweb.
 
Regards,
Alistair