autoconf
[Top][All Lists]
Advanced

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

Re: debug builds with NO optimizations


From: John Calcote
Subject: Re: debug builds with NO optimizations
Date: Tue, 07 Feb 2006 12:28:24 -0700

My point exactly. The autoconf system should reserve a variable that is NOT the 
user. Automake has such a facility - AM_CFLAGS. This variable should be 
reserved for configure to add flags to the compiler command line based on 
higher-level, user-specified options, such as --enable-debug, or 
--with-full-optimization, etc.
 
John

>>> Andreas Schwab <address@hidden> 2/7/2006 11:34:30 am >>>
"John Calcote" <address@hidden> writes:

> When you override CFLAGS on the configure command line, you give
> configure the opportunity to add more flags to the CFLAGS variable that
> are then passed on to make.

Yes, there are many broken configure scripts out there that do that.
Please don't spread that further.  CFLAGS (as well all CPPFLAGS, CXXFLAGS,
etc.) should always be reserved for the user to override any time.  It it
highly annoying if that does not work.

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



reply via email to

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