Re: [HACKERS] Checking if a system is ELF

From: "Ross J(dot) Reedstrom" <reedstrm(at)wallace(dot)ece(dot)rice(dot)edu>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [HACKERS] Checking if a system is ELF
Date: 1999-07-28 03:16:15
Message-ID: 19990727221614.A18655@wallace.ece.rice.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Jul 27, 1999 at 08:20:31PM -0400, D'Arcy J.M. Cain wrote:
> Thus spake Ross J. Reedstrom
> > tatabox% echo __ELF__ | gcc -E -
> > # 1 ""
> > __ELF__
>
> This implies that tatabox is not an ELF system. Is that accurate?
>
> > wallace$ echo __ELF__ | gcc -E -
> > # 1 ""
> > 1
>
> And this says that wallace is. Correct or no?
>

Quite correct. I had the logic backwords from the original suggestion.
I can only plead pre-dinner hunger - lack of glucose to the brain ;-)

Don't know about feeding the native cc on stdin. Probably have to
create a temp file and compile that.

Ross

--
Ross J. Reedstrom, Ph.D., <reedstrm(at)rice(dot)edu>
NSBRI Research Scientist/Programmer
Computer and Information Technology Institute
Rice University, 6100 S. Main St., Houston, TX 77005

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message The Hermit Hacker 1999-07-28 04:04:34 Re: [HACKERS] Bug tracking system policy
Previous Message Michael Robinson 1999-07-28 03:00:13 Re: [HACKERS] UPDATE performance degradation (6.5.1)