Re: Howto set kernel makefile to use particular gcc



You never know where you'll get most response:-)

Marc Giger wrote:
> Keith, your domain seems not to be resolvable...
Yup... very strange. Not proper delegation to zoneedit.com?

kalin@kpc ~ $ whois ocs.com.au |grep ^Name
Name Server: ns2.zoneedit.com
Name Server: ns3.zoneedit.com
Name Server: ns1.ocs.com.au
Name Server IP: 202.147.117.210

kalin@kpc ~ $ dnsq any ocs.com.au ns2.zoneedit.com
255 ocs.com.au:
167 bytes, 1+4+2+0 records, response, authoritative, noerror
query: 255 ocs.com.au
answer: ocs.com.au 7200 A 0.0.0.0
# --> H E R E <--
answer: ocs.com.au 7200 NS ns2.zoneedit.com
answer: ocs.com.au 7200 NS ns3.zoneedit.com
answer: ocs.com.au 7200 SOA ns2.zoneedit.com soacontact.zoneedit.com 1135991510
14400 7200 950400 7200
authority: ocs.com.au 7200 NS ns2.zoneedit.com
authority: ocs.com.au 7200 NS ns3.zoneedit.com

kalin@kpc ~ $ dnsq any ocs.com.au 202.147.117.210
255 ocs.com.au:
221 bytes, 1+5+0+4 records, response, authoritative, noerror
query: 255 ocs.com.au
answer: ocs.com.au 172800 SOA mail.ocs.com.au admin.mail.ocs.com.au 2005123101 1
0800 3600 604800 86400
answer: ocs.com.au 172800 MX 0 mail.ocs.com.au
answer: ocs.com.au 172800 NS ns1.ocs.com.au
answer: ocs.com.au 172800 NS ns2.zoneedit.com
answer: ocs.com.au 172800 NS ns3.zoneedit.com
additional: mail.ocs.com.au 172800 A 202.147.117.210
additional: ns1.ocs.com.au 172800 A 202.147.117.210
additional: ns2.zoneedit.com 158763 A 69.72.158.226
additional: ns3.zoneedit.com 158763 A 66.180.174.61

kalin@kpc ~ $ dnsname 202.147.117.210
mail.ocs.com.au

> On Sun, 01 Jan 2006 22:18:27 +1100
> Keith Owens <kaos@xxxxxxxxxx> wrote:
>
>
>>Marc Giger (on Sun, 1 Jan 2006 12:13:03 +0100) wrote:
>>
>>>Why would you "hardwire" it?
>>>#export CC="distcc"
>>>should do it.
>>
>>Doubt it. From 'info make', Node: Environment.
>>
>> Variables in `make' can come from the environment in which `make'
>> is
>> run. Every environment variable that `make' sees when it starts up
>> is transformed into a `make' variable with the same name and value.
>> But an explicit assignment in the makefile, or with a command
>> argument, overrides the environment. (If the `-e' flag is
>> specified, then values from the environment override assignments in
>> the makefile. *Note Summary of Options: Options Summary. But this
>> is not recommended practice.)
>>
>>The kernel Makefile explicitly sets CC which overrides the environment
>>value, but does not override a command line definition of CC. IOW, do
>>not reply on environment variables always working with make.
>
>
> You are absolutely right. Because I never used it in this way, I wrote
> "should":-) I specify it always on the make command line.
>
> So if Kalin would like to hardwire it, he has to change the CC variable
> in the Makefile...
My point was that changing it in the Makefile does not work.

kpc ~ # grep CC= /usr/src/linux/Makefile
CC=distcc
# echo $CC

kpc ~ # uname -a
Linux kpc 2.6.14.4-K01_P4_desktop #1 Sun Dec 18 22:46:08 JST 2005 i686 Intel(R) Pentium(R) 4 CPU
2.40GHz GenuineIntel GNU/Linux

What I want is making a bunch of kernels in NFS exported /var/kernels/out/`uname -r` and then be
able to `make modules` on other machines without having to recompile the whole thing. All (or
almost?) boxes use gcc-3.4.4 and distcc to share the load.

Kalin.
--
|[ ~~~~~~~~~~~~~~~~~~~~~~ ]|
+-> http://ThinRope.net/ <-+
|[ ______________________ ]|

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: make on multiple platforms
    ... I also wanted to compile it on my Mac (which has MacPorts ... Is there a way I can just have one makefile, which has both settings, ... Why do you try compiling applications of different environment ... platform directory for each platform. ...
    (comp.lang.c)
  • Re: How did you learn your debugging skills?
    ... > for bug fixes, as I'm sure we'd all agree. ... Could it also edict that a programmer can compile and execute small modules ... invest in copying the makefile into a new makefile, ... > So much for trying to do TDD in that environment! ...
    (comp.programming)
  • Re: Compiling DBD::Oracle 1.17 with LD_RUN_PATH
    ... Specifally the libclntsh.so file is now bundled in the libclntsh.so.10.1 file (depending on which client) ... Subject: Compiling DBD::Oracle 1.17 with LD_RUN_PATH ... The Makefile for 1.17, on the other hand, doesn't set LD_RUN_PATH. ... By setting LD_RUN_PATH in my environment, I was able to build 1.17 with the ...
    (perl.dbi.users)
  • Re: Need help with cleaning up a working GNU Autotools setup
    ... Makefile, with VPATH set to the surce directory. ... > environment, I may end up in a maintenance nightmare. ... you are talking about autotools for. ... It's none of my business how you go about that. ...
    (comp.os.linux.development.system)
  • Re: makefile format ?
    ... The BUILD environment from the DDK/WDL uses a specific makefile, ... Don Burn (MVP, Windows DDK) ... console or SDK project? ...
    (microsoft.public.development.device.drivers)