Re: [HACKERS] Re: More on shared objects problem

Todd Vierling <tv@pobox.com>

From: Todd Vierling <tv@pobox.com>
To: Thilo Manske <Thilo.Manske@HEH.Uni-Oldenburg.DE>
Cc: Mark Hollomon <mhh@nortelnetworks.com>, pgsql-hackers@postgreSQL.org, current-users@netbsd.org
Date: 1999-07-27T19:04:34Z
Lists: pgsql-hackers
On Tue, 27 Jul 1999, Thilo Manske wrote:

: if echo __ELF__ | ${CC} -E - | grep -q __ELF__; then
:   # ELF
: else
:   # a.out
: fi
: 
: This is not my idea, it's from the patches for apache in the package tree.

It's actually backwards.  If the "grep -q" returns true, it's an a.out
system (since cpp did *not* replace __ELF__ with 1).

-- 
-- Todd Vierling (tv@pobox.com)