WIth this little patch is easy to switch gcc version.
The the users can add its own preferences. On my system
I have 3 versions of gcc. And guess Im not alone.

diff Makefile Makefile.org
49,50c49,50
< HOSTCC        := $(firstword $(CC) gcc)
< HOSTCXX       := $(firstword $(CXX) g++)
---
> HOSTCC        = gcc
> HOSTCXX       = g++
152,154c152,154
< AS            := $(firstword $(AS) $(CROSS_COMPILE)as)
< LD            := $(firstword $LD) $(CROSS_COMPILE)ld)
< CC            := $(firstword $(CC) $(CROSS_COMPILE)gcc)
---
> AS            = $(CROSS_COMPILE)as
> LD            = $(CROSS_COMPILE)ld
> CC            = $(CROSS_COMPILE)gcc
156,157c156,157
< AR            := $firstword ($AR) $(CROSS_COMPILE)ar)
< NM            := $firstword $(NM) $(CROSS_COMPILE)nm)
---
> AR            = $(CROSS_COMPILE)ar
> NM            = $(CROSS_COMPILE)nm
162,163c162,163
< GENKSYMS      := $(firstword $(GENSYMS) /sbin/genksyms)
< DEPMOD                := $(firstword $(DEPMOD) /sbin/depmod)
---
> GENKSYMS      = /sbin/genksyms
> DEPMOD                = /sbin/depmod
165c165
< PERL          := $(firstword $(PERL) perl)
---
> PERL          = perl
pescadero$




------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ kbuild-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/kbuild-devel

Reply via email to