SPECS (LINUX_2_6_22): kernel.spec - kgcc_package/kgcc macros

glen glen at pld-linux.org
Fri Apr 4 22:32:19 CEST 2008


Author: glen                         Date: Fri Apr  4 20:32:19 2008 GMT
Module: SPECS                         Tag: LINUX_2_6_22
---- Log message:
- kgcc_package/kgcc macros

---- Files affected:
SPECS:
   kernel.spec (1.441.2.1796.2.71 -> 1.441.2.1796.2.72) 

---- Diffs:

================================================================
Index: SPECS/kernel.spec
diff -u SPECS/kernel.spec:1.441.2.1796.2.71 SPECS/kernel.spec:1.441.2.1796.2.72
--- SPECS/kernel.spec:1.441.2.1796.2.71	Thu Apr  3 23:08:30 2008
+++ SPECS/kernel.spec	Fri Apr  4 22:32:13 2008
@@ -415,7 +415,7 @@
 BuildRequires:	elftoaout
 %endif
 BuildRequires:	/sbin/depmod
-BuildRequires:	gcc >= 5:3.2
+BuildRequires:	%{kgcc_package} >= 5:3.2
 # for hostname command
 BuildRequires:	net-tools
 BuildRequires:	perl-base
@@ -482,25 +482,25 @@
 	%define	DepMod /bin/true
 
 	%if "%{_arch}" == "sparc" && "%{_target_base_arch}" == "sparc64"
-	%define	CrossOpts ARCH=%{_target_base_arch} CC="%{__cc}"
+	%define	CrossOpts ARCH=%{_target_base_arch} CC="%{kgcc}"
 	%define	DepMod /sbin/depmod
 	%endif
 
 	%if "%{_arch}" == "sparc64" && "%{_target_base_arch}" == "sparc"
-	%define	CrossOpts ARCH=%{_target_base_arch} CC="%{__cc}"
+	%define	CrossOpts ARCH=%{_target_base_arch} CC="%{kgcc}"
 	%define	DepMod /sbin/depmod
 	%endif
 
 	%if "%{_arch}" == "x86_64" && "%{_target_base_arch}" == "i386"
-	%define	CrossOpts ARCH=%{_target_base_arch} CC="%{__cc}"
+	%define	CrossOpts ARCH=%{_target_base_arch} CC="%{kgcc}"
 	%define	DepMod /sbin/depmod
 	%endif
 
 %else
 	%ifarch ppc ppc64
-	%define CrossOpts ARCH=powerpc CC="%{__cc}"
+	%define CrossOpts ARCH=powerpc CC="%{kgcc}"
 	%else
-	%define CrossOpts ARCH=%{_target_base_arch} CC="%{__cc}"
+	%define CrossOpts ARCH=%{_target_base_arch} CC="%{kgcc}"
 	%endif
 	%define	DepMod /sbin/depmod
 %endif
@@ -1749,6 +1749,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.441.2.1796.2.72  2008-04-04 20:32:13  glen
+- kgcc_package/kgcc macros
+
 Revision 1.441.2.1796.2.71  2008-04-03 21:08:30  glen
 - obslete mv_sata module
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/kernel.spec?r1=1.441.2.1796.2.71&r2=1.441.2.1796.2.72&f=u



More information about the pld-cvs-commit mailing list