Re: 2.6.24-rc1-82798a1 compile failure (x86_64)

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: David Miller <davem@...>
Cc: <mingo@...>, <sam@...>, <thomas@...>, <tglx@...>, <linux-kernel@...>, <linux-kbuild@...>, <akpm@...>
Date: Sunday, November 4, 2007 - 11:29 am

On Sun, Nov 04, 2007 at 02:31:33AM -0800, David Miller wrote:

Makefiles do normally not pick such variables from the environment.


I'm not seeing what's stupid about this.

I had for years CFLAGS="-O2 -mcpu=v8" set in the environment on a
machine where I compiled virtually all software (including gcc), and 
different similar settings on other machines, without running into any 
problems.

I also doubt it's wanted that the kernel picks up the -I/-L/-R flags
I have set in some environments where many libraries are installed in 
non-standard places.

Altogether:
- normally, Makefiles don't pick environment variables
- most open source software uses GNU autoconf
- GNU autoconf does pick environment variables
- GNU autoconf documents to set *FLAGS in the environment
- the kernel has different needs regarding the *FLAGS than userspace
- automatically using the *FLAGS people have set in their environment
  for userspace software in the kernel will cause problems
- the kernel should have already picked the optimal *FLAGS for you,
  and wanting different flags in the kernel is something quite exotic

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: 2.6.24-rc1-82798a1 compile failure (x86_64), Thomas Bächler, (Tue Oct 30, 5:10 am)
Re: 2.6.24-rc1-82798a1 compile failure (x86_64), Thomas Bächler, (Sat Nov 3, 6:04 am)
Re: 2.6.24-rc1-82798a1 compile failure (x86_64), Sam Ravnborg, (Sat Nov 3, 8:11 am)
Re: 2.6.24-rc1-82798a1 compile failure (x86_64), Adrian Bunk, (Sat Nov 3, 10:02 pm)
Re: 2.6.24-rc1-82798a1 compile failure (x86_64), Arjan van de Ven, (Tue Nov 6, 1:32 pm)
Re: 2.6.24-rc1-82798a1 compile failure (x86_64), Adrian Bunk, (Tue Nov 6, 8:12 pm)
Re: 2.6.24-rc1-82798a1 compile failure (x86_64), Ingo Molnar, (Sun Nov 4, 6:04 am)
Re: 2.6.24-rc1-82798a1 compile failure (x86_64), David Miller, (Sun Nov 4, 6:31 am)
Re: 2.6.24-rc1-82798a1 compile failure (x86_64), Adrian Bunk, (Sun Nov 4, 11:29 am)
Re: 2.6.24-rc1-82798a1 compile failure (x86_64), David Miller, (Mon Nov 5, 12:01 am)
Re: 2.6.24-rc1-82798a1 compile failure (x86_64), Sam Ravnborg, (Sun Nov 4, 2:10 pm)
Re: 2.6.24-rc1-82798a1 compile failure (x86_64), Giacomo Catenazzi, (Sun Nov 4, 12:19 pm)
Re: 2.6.24-rc1-82798a1 compile failure (x86_64), Adrian Bunk, (Sun Nov 4, 12:34 pm)
Re: 2.6.24-rc1-82798a1 compile failure (x86_64), David Miller, (Mon Nov 5, 12:03 am)
Re: 2.6.24-rc1-82798a1 compile failure (x86_64), Giacomo Catenazzi, (Sun Nov 4, 2:33 pm)
Re: 2.6.24-rc1-82798a1 compile failure (x86_64), Oleg Verych, (Sun Nov 4, 11:55 am)
Re: 2.6.24-rc1-82798a1 compile failure (x86_64), Sam Ravnborg, (Sun Nov 4, 7:16 am)
Re: 2.6.24-rc1-82798a1 compile failure (x86_64), Thomas Bächler, (Sun Nov 4, 8:27 am)
Re: 2.6.24-rc1-82798a1 compile failure (x86_64), Sam Ravnborg, (Sun Nov 4, 6:19 am)