Coda File System

Re: Compiler flags

From: <>
Date: Mon, 08 Feb 1999 11:18:08 -0500 ,in message <>, 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'

  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                         
Received on 1999-02-08 11:22:03