Coda File System

Re: Compiler flags

From: <thoth_at_purplefrog.com>
Date: Mon, 08 Feb 1999 11:18:08 -0500
jaharkes_at_cs.cmu.edu ,in message <199902081611.LAA08144_at_telos.odyssey.cs.cmu.edu>, wrote: 

> ps. Does anybody know how to detect egcs, or test whether we can use
>     the -fno-exceptions flag, using autoconf?

  No, but maybe this will help:

 frop:6 $ echo "int i;" > foo.c && if gcc -fno-exceptions foo.c; then echo true; else echo false; fi
cc1: Invalid option `-fno-exceptions'
false

  remember to "rm foo.c a.out" and you might want to >/dev/null stdout and
stderr to shut it up.

  Seinfeld moment: "If it's generating an ELF executable instead of a.out, why
is the default binary still called a.out?"

-- 
Bob Forsman                                   thoth_at_gainesville.fl.us
           http://www.gainesville.fl.us/~thoth/
Received on 1999-02-08 11:22:03