Re: Question about CFLAGS

2008-04-16 Thread Andreas Schwab
Sérgio Durigan Júnior [EMAIL PROTECTED] writes: My question is about the CFLAGS variable. What should be the standard behaviour when I provide my own CFLAGS (in this case, '-m64') for configure script? Should it override its own CFLAGS and use only mine, or should it append my CFLAGS to its

Re: Question about CFLAGS

2008-04-16 Thread Sérgio Durigan Júnior
Hi Andreas, On Wed, 2008-04-16 at 16:57 +0200, Andreas Schwab wrote: Sérgio Durigan Júnior [EMAIL PROTECTED] writes: My question is about the CFLAGS variable. What should be the standard behaviour when I provide my own CFLAGS (in this case, '-m64') for configure script? Should it

Re: Question about CFLAGS

2008-04-16 Thread Bob Friesenhahn
On Wed, 16 Apr 2008, Sérgio Durigan Júnior wrote: In general a configure script should never modify CFLAGS. But flags like -m64 that select a completely different ABI should better be put in CC, not CFLAGS. I will second the above statement. Does that mean that CFLAGS is a variable only for

Re: Question about CFLAGS

2008-04-16 Thread Paul Smith
On Wed, 2008-04-16 at 13:51 -0300, Sérgio Durigan Júnior wrote: Yes, it is a bug. What we want to know is if we should append $CFLAGS to $BASECFLAGS (i.e., BASECFLAGS=$BASECFLAGS @CFLAGS@) or use *only* $CFLAGS when the user provides it. By convention and practice, the former (CFLAGS are ADDED

Re: Question about CFLAGS

2008-04-16 Thread Sérgio Durigan Júnior
Hi Bob, On Wed, 2008-04-16 at 11:24 -0500, Bob Friesenhahn wrote: Does that mean that CFLAGS is a variable only for the user? Well, let's say that, for some strong reason, the configure is actually modifying it. What would be the correct behaviour in this case? FYI, I'm talking

Re: Question about CFLAGS

2008-04-16 Thread Bob Friesenhahn
On Wed, 16 Apr 2008, Sérgio Durigan Júnior wrote: Yes, it is a bug. What we want to know is if we should append $CFLAGS to $BASECFLAGS (i.e., BASECFLAGS=$BASECFLAGS @CFLAGS@) or use *only* $CFLAGS when the user provides it. Presumably BASECFLAGS exists for some useful purpose? Don't forget