Re: More on shared objects problem

From: Todd Vierling <tv(at)pobox(dot)com>
To: current-users(at)netbsd(dot)org
Subject: Re: More on shared objects problem
Date: 1999-07-27 18:00:28
Message-ID: Pine.NEB.4.10.9907271356340.1286-100000@server.int.duh.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)pobox(dot)com)

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Mark Hollomon 1999-07-27 18:06:25 Re: dynloader and PLs [was: plperl intial pass]
Previous Message Jonathan Stone 1999-07-27 17:49:49 Re: [HACKERS] More on shared objects problem