🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.linux
Article #58056

Re: Detecting versions of Linux

#58056
From: Dimitri Maziuk
Date: Wed, 24 Jul 1996 00:00
22 lines
1322 bytes
Steve Merrifield wrote:
> 
> chris mcdonald (chris@cs.uwa.oz.au) wrote:
> 
> <snip>
> 
> : As I'm using the dynamic loading routines, and need to discern between
> : a.out and ELF, can anyone suggest a similar, simple scheme so that I may
> : use either  Makefile.linuxaout or Makefile.linuxelf ?
> 
> How about using:        file /usr/bin/gcc       and greping ELF or QMAGIC ?

Yeah, except that gcc's not the only compiler out there (in theory, at
least  :)

`file $CC | grep ELF` would be better.
-- 
Dimitri
-------------------------------------------------------------------------------
  If Jesus was Jewish, then why did he have a Puerto-Rican name?
                                                     -- Zen koan
Technical Details
Message-ID: <31F51E22.4A1691E1@alpha2.curtin.edu.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <chris.838019861@bison> <4t15t5$6qi@lugb.latrobe.edu.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 102983,ddcc9db46b4dacf9
X-Google-Attributes: gid102983,public
From: Dimitri Maziuk <emaziuk@alpha2.curtin.edu.au>
Subject: Re: Detecting versions of Linux
Date: 1996/07/24
Message-ID: <31F51E22.4A1691E1@alpha2.curtin.edu.au>
X-Deja-AN: 169763342
references: <chris.838019861@bison> <4t15t5$6qi@lugb.latrobe.edu.au>
content-type: text/plain; charset=us-ascii
organization: Curtin University of Technology
mime-version: 1.0
newsgroups: aus.computers.linux
x-mailer: Mozilla 3.0b5 (X11; I; Linux 2.0.0 i486)