[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: configure sets CFLAGS or how to disable default CFLAGS='-g -O2' for
From: |
Ralf Wildenhues |
Subject: |
Re: configure sets CFLAGS or how to disable default CFLAGS='-g -O2' for gcc? |
Date: |
Wed, 5 Apr 2006 08:40:58 +0200 |
User-agent: |
Mutt/1.5.11 |
* Chris Pickett wrote on Wed, Apr 05, 2006 at 07:28:23AM CEST:
> For example, I didn't know AC_PROG_CC set "-g -O2", even
> though I had been using it for a while.
Quoting info Autoconf "C Compiler":
| If using the GNU C compiler, set shell variable `GCC' to `yes'.
| If output variable `CFLAGS' was not already set, set it to `-g
| -O2' for the GNU C compiler (`-O2' on systems where GCC does not
| accept `-g'), or `-g' for other compilers.
> So, how about providing special flags for known platforms, and a safe
> default for unknown platforms? Add to this protection by configure
> options so the user really has to want my flags to get them. Is this an
> acceptable compromise?
In general, overridability is more important than the special-casing.
Cheers,
Ralf
- Re: configure sets CFLAGS or how to disable default CFLAGS='-g -O2' for gcc?, (continued)
- Re: configure sets CFLAGS or how to disable default CFLAGS='-g -O2' for gcc?, Chris Pickett, 2006/04/02
- Re: configure sets CFLAGS or how to disable default CFLAGS='-g -O2' for gcc?, Peter Volkov, 2006/04/02
- Re: configure sets CFLAGS or how to disable default CFLAGS='-g -O2' for gcc?, Ed Hartnett, 2006/04/04
- Re: configure sets CFLAGS or how to disable default CFLAGS='-g -O2' for gcc?, Ralf Corsepius, 2006/04/04
- Re: configure sets CFLAGS or how to disable default CFLAGS='-g -O2' for gcc?, Chris Pickett, 2006/04/04
- Re: configure sets CFLAGS or how to disable default CFLAGS='-g -O2' for gcc?, Chris Pickett, 2006/04/04
- Re: configure sets CFLAGS or how to disable default CFLAGS='-g -O2' for gcc?, Ralf Corsepius, 2006/04/04
- Re: configure sets CFLAGS or how to disable default CFLAGS='-g -O2' for gcc?, Chris Pickett, 2006/04/04
- Re: configure sets CFLAGS or how to disable default CFLAGS='-g -O2' for gcc?, Jacob Meuser, 2006/04/05
- Re: configure sets CFLAGS or how to disable default CFLAGS='-g -O2' for gcc?, Chris Pickett, 2006/04/05
- Re: configure sets CFLAGS or how to disable default CFLAGS='-g -O2' for gcc?,
Ralf Wildenhues <=
- Re: configure sets CFLAGS or how to disable default CFLAGS='-g -O2' for gcc?, Chris Pickett, 2006/04/05
- Re: configure sets CFLAGS or how to disable default CFLAGS='-g -O2' for gcc?, Ralf Wildenhues, 2006/04/05
- Re: configure sets CFLAGS or how to disable default CFLAGS='-g -O2' for gcc?, Ed Hartnett, 2006/04/04
- Re: configure sets CFLAGS or how to disable default CFLAGS='-g -O2' for gcc?, Jacob Meuser, 2006/04/05
- Re: configure sets CFLAGS or how to disable default CFLAGS='-g -O2' for gcc?, Ralf Corsepius, 2006/04/07
- Re: configure sets CFLAGS or how to disable default CFLAGS='-g -O2' for gcc?, Ed Hartnett, 2006/04/08
- Re: configure sets CFLAGS or how to disable default CFLAGS='-g -O2' for gcc?, Steven G. Johnson, 2006/04/11