Re: [HACKERS] Checking if a system is ELF - Mailing list pgsql-hackers

From Ross J. Reedstrom
Subject Re: [HACKERS] Checking if a system is ELF
Date
Msg-id 19990727221614.A18655@wallace.ece.rice.edu
Whole thread Raw
In response to Re: [HACKERS] Checking if a system is ELF  ("D'Arcy" "J.M." Cain <darcy@druid.net>)
List 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@rice.edu> 
NSBRI Research Scientist/Programmer
Computer and Information Technology Institute
Rice University, 6100 S. Main St.,  Houston, TX 77005


pgsql-hackers by date:

Previous
From: "Hiroshi Inoue"
Date:
Subject: RE: [HACKERS] SELECT FOR UPDATE in (PL/pgSQL) function
Next
From: Michael Robinson
Date:
Subject: Re: [HACKERS] UPDATE performance degradation (6.5.1)