Date: Tue, 01 Sep 1998 21:18:23 -0700 From: John Polstra <jdp@polstra.com> To: tlambert@primenet.com Cc: current@FreeBSD.ORG Subject: Re: XFree86 and ELF Message-ID: <199809020418.VAA17950@austin.polstra.com> In-Reply-To: <199809020127.SAA12927@usr01.primenet.com> References: <199809020127.SAA12927@usr01.primenet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In article <199809020127.SAA12927@usr01.primenet.com>, Terry Lambert <tlambert@primenet.com> wrote: > > This is due to the fact that I am unaware of a portable way to check > > if we're on an ELF system. Bear in mind it might be a prehistoric > > -stable version, so it isn't just a question of `objformat`. > > #!/bin/sh > > echo "Is it ELF yet?" > file `which ld` | grep ELF >/dev/null 2>&1 > if test "$?" = "0" > then > echo "It's ELF, yet!" > else > echo "No, not yet..." > fi What I've been using in ports Makefiles is: OBJFORMAT!= test -x /usr/bin/objformat && /usr/bin/objformat || echo aout John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Self-knowledge is always bad news." -- John Barth To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809020418.VAA17950>