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

From: Thilo Manske <Thilo(dot)Manske(at)HEH(dot)Uni-Oldenburg(dot)DE>
To: Mark Hollomon <mhh(at)nortelnetworks(dot)com>
Cc: pgsql-hackers(at)postgreSQL(dot)org, Todd Vierling <tv(at)pobox(dot)com>, current-users(at)netbsd(dot)org
Subject: Re: [HACKERS] Re: More on shared objects problem
Date: 1999-07-27 18:41:08
Message-ID: 19990727204108.A2119@WintelKiller.HEH.Uni-Oldenburg.DE
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Jul 27, 1999 at 02:35:13PM -0400, Mark Hollomon wrote:
> D'Arcy J.M. Cain wrote:
> > 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?
>
> The test I use is to compile a program that opens its own executable
> and checks for the magic number.
Or this:

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.
--
Dies ist Thilos Unix Signature! Viel Spass damit.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Todd Vierling 1999-07-27 19:04:34 Re: [HACKERS] Re: More on shared objects problem
Previous Message Mark Hollomon 1999-07-27 18:35:13 Re: [HACKERS] Re: More on shared objects problem