autoconf
[Top][All Lists]
Advanced

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

Re: CFLAGS default values


From: Bob Friesenhahn
Subject: Re: CFLAGS default values
Date: Sat, 29 Nov 2003 16:11:14 -0600 (CST)

On 29 Nov 2003, Paul Eggert wrote:

> Matze Braun <address@hidden> 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
address@hidden
http://www.simplesystems.org/users/bfriesen





reply via email to

[Prev in Thread] Current Thread [Next in Thread]