Re: CFLAGS default values

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 29 Nov 2003, Paul Eggert wrote:

> Matze Braun <matze@xxxxxxxxxx> writes:
>
> > It would be alot more apropriate to let the user choose it's default flags
> > in the configure.ac file.
>
> That's easy: just set CFLAGS.
>
> There's no universally-acceptable default.  Generally speaking, the
> old UNIX tradition (namely, no debugging and no optimization) is less
> suitable these days than the autoconf default (debugging and a
> reasonable level of optimization).

Agreed.  However, shouldn't Autoconf provide a means for the package
maintainer to semi-intelligently set a CFLAGS default?

Unfortunately, the option flags vary across Unix compilers so once you
go beyond simple '-g' and '-O', it becomes necessary to test if the
compiler accepts a given option.

Bob
======================================
Bob Friesenhahn
bfriesen@xxxxxxxxxxxxxxxxxxx
http://www.simplesystems.org/users/bfriesen




[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux