Use configured kernel compiler on 2.6
PATCH 1/1 Use configured kernel compiler on 2.6
Compile the modules for 2.6 with the configured kernel compiler instead of the compiler specified in the kernel Makefile. If the kernel was compiled with the default compiler (gcc) and gcc later was upgraded or changed to an incompatible gcc version used to compile the alsa modules, would otherwise lead to unusable modules.
Index: alsa-driver/Makefile
===================================================================
RCS file: /cvsroot/alsa/alsa-driver/Makefile,v
retrieving revision 1.121
Makefile +1 -1
@@ -137,7 +137,7 @@ .PHONY: compile compile: include/sound/version.h include/sndversions.h ifdef NEW_KBUILD - $(MAKE) -C $(CONFIG_SND_KERNELDIR) SUBDIRS=$(MAINSRCDIR) $(MAKE_ADDS) modules + $(MAKE) -C $(CONFIG_SND_KERNELDIR) SUBDIRS=$(MAINSRCDIR) $(MAKE_ADDS) CPP="$(CPP)" CC="$(CC)" modules utils/link-modules $(SND_TOPDIR) else @for d in $(SUBDIRS); do if ! $(MAKE) -C $$d; then exit 1; fi; done
Index: alsa-driver/Makefile.conf.in
===================================================================
RCS file: /cvsroot/alsa/alsa-driver/Makefile.conf.in,v retrieving revision 1.67
Makefile.conf.in +2 -0
@@ -11,6 +11,8 @@ CROSS_COMPILE ?= @CROSS_COMPILE@ ARCH ?= @ARCH@ ifdef NEW_KBUILD +CC = $(CROSS_COMPILE)@CC@ +CPP = $(CROSS_COMPILE)@CPP@ export CROSS_COMPILE ARCH else AS = $(CROSS_COMPILE)@AS@
Takashi Iwai
AppliedAt Mon, 24 Apr 2006 23:58:53 +0200,
Quoted 9 lines · Mikael Magnusson
Compile the modules for 2.6 with the configured kernel compiler instead of the compiler specified in the kernel
Makefile. If the kernel was compiled with the default compiler (gcc) and gcc later was upgraded or changed to an incompatible gcc version used to compile the alsa modules, would otherwise lead to unusable modules.Signed-off-by Mikael Magnusson <[email protected]>
Thanks, applied to Hg repo now.
Takashi
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642