SFEgcc.spec: switch back to sun ld for gcc 4.7 but require SFEbinutils (for 4.7 only) spec-files-extra
authorloganbruns
Sun, 24 Feb 2013 19:57:53 +0000
branchspec-files-extra
changeset 10616 6b698abf1f65
parent 10615 b4f44967a381
child 10617 608622807ceb
SFEgcc.spec: switch back to sun ld for gcc 4.7 but require SFEbinutils (for 4.7 only)
trunk/ChangeLog
trunk/SFEgcc.spec
--- a/trunk/ChangeLog	Sun Feb 24 19:57:23 2013 +0000
+++ b/trunk/ChangeLog	Sun Feb 24 19:57:53 2013 +0000
@@ -1,5 +1,8 @@
 2013-02-24  Logan O'Sullivan Bruns  <[email protected]>
 
+	* SFEgcc.spec: switch back to sun ld for gcc 4.7 but require
+	SFEbinutils (for 4.7 only)
+
 	* SFEbinutils-gpp.spec: also build gold
 
 2013-02-23  Logan O'Sullivan Bruns  <[email protected]>
--- a/trunk/SFEgcc.spec	Sun Feb 24 19:57:23 2013 +0000
+++ b/trunk/SFEgcc.spec	Sun Feb 24 19:57:53 2013 +0000
@@ -75,6 +75,12 @@
 %define SUNWbinutils 0
 %endif
 
+#if building gcc 4.7 or up force the use of SFEbinutils since OI's binutils is too old
+%if %( expr %{major_minor} '>=' 4.7 )
+%define SFEbinutils 1
+%define SUNWbinutils 0
+%endif
+
 # force using gmp | mpfr
 #if SFEgmp is not present, force them as required by the commandline switch --with_SFEgmp
 %define with_SFEgmp %{?_with_SFEgmp:1}%{?!_with_SFEgmp:0}
@@ -380,11 +386,7 @@
 #saw problems. 134 did compile, OI147 stopped with probably linker errors
 ##TODO## research which osbuild started to fail, adjust the number below
 #%if %(expr %{osbuild} '>=' 1517)
-%if %( expr %{major_minor} '>=' 4.7 )
-%define build_gcc_with_gnu_ld 1
-%else
 %define build_gcc_with_gnu_ld 0
-%endif
 
 %if %build_gcc_with_gnu_ld
 
@@ -674,6 +676,8 @@
 %endif
 
 %changelog
+* Sun Feb 24 2013 - Logan Bruns <[email protected]>
+- switch back to sun ld for gcc 4.7 but require SFEbinutils (for 4.7 only)
 * Sat Feb 23 2013 - Logan Bruns <[email protected]>
 - updated some of the patches for gcc 4.7
 - use gnu ld by default for gcc 4.7