From owner-freebsd-ports Wed Sep 23 00:45:16 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA01759 for freebsd-ports-outgoing; Wed, 23 Sep 1998 00:45:16 -0700 (PDT) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from cimlogic.com.au (cimlog.lnk.telstra.net [139.130.51.31]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA01722; Wed, 23 Sep 1998 00:45:03 -0700 (PDT) (envelope-from jb@cimlogic.com.au) Received: (from jb@localhost) by cimlogic.com.au (8.9.1/8.9.1) id RAA04727; Wed, 23 Sep 1998 17:50:47 +1000 (EST) (envelope-from jb) From: John Birrell Message-Id: <199809230750.RAA04727@cimlogic.com.au> Subject: Re: SOCKS port inspires question... In-Reply-To: <199809230732.BAA18835@harmony.village.org> from Warner Losh at "Sep 23, 98 01:32:01 am" To: imp@village.org (Warner Losh) Date: Wed, 23 Sep 1998 17:50:47 +1000 (EST) Cc: asami@FreeBSD.ORG, ports@FreeBSD.ORG, jdp@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Warner Losh wrote: > In message <199809230726.AAA11574@silvia.hip.berkeley.edu> Satoshi > Asami writes: > : That is exactly what people mean by "compile time" (as opposed to, > : say, "run time"). If you meant "from inside the compiler", then I > : don't know of any. > > OK. I had hoped that you would say "Oh, yes, just check > __FreeBSD_MUMBLE_ELF__, which is always defined when you are building > elf executables"... If you want to test if the compiler is generating elf format, use #ifdef __ELF__. If you want a program to test at runtime if it should be doing elf or aout, call objformat() in libc if using 3.0-BETA or later. -- John Birrell - jb@cimlogic.com.au; jb@freebsd.org http://www.cimlogic.com.au/ CIMlogic Pty Ltd, GPO Box 117A, Melbourne Vic 3001, Australia +61 418 353 137 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message