Re: More on shared objects problem - Mailing list pgsql-hackers

From Todd Vierling
Subject Re: More on shared objects problem
Date
Msg-id Pine.NEB.4.10.9907271356340.1286-100000@server.int.duh.org
Whole thread Raw
In response to Re: More on shared objects problem  ("D'Arcy" "J.M." Cain <darcy@druid.net>)
List pgsql-hackers
On Tue, 27 Jul 1999, D'Arcy J.M. Cain wrote:

(Note that pgsql-hackers is not in my To: header, as I'm not on the list and
cannot post.)

: So how do we determine that a system is elf?  I don't see it in uname.  Do
: we just run file(1) on the kernel and see if the string "ELF" shows up?

On NetBSD, the following will do it.  This may even be platform independednt
if "grep -q" is replaced by "grep >/dev/null 2>&1".

if echo __ELF__ | ${CC} -E - | grep -q __ELF__; then ... a.out action ...
else ... ELF action ...
fi

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



pgsql-hackers by date:

Previous
From: "Mark Hollomon"
Date:
Subject: Re: dynloader and PLs [was: plperl intial pass]
Next
From: "Hub.Org News Admin"
Date:
Subject: ...