diff --git a/compat-gcc-32.spec b/compat-gcc-32.spec index 4ca8066..318474e 100644 --- a/compat-gcc-32.spec +++ b/compat-gcc-32.spec @@ -1,7 +1,7 @@ %define LIBSTDCXXDATE 20040818 %define DATE 20040701 %define gcc_version 3.2.3 -%define gcc_release 64 +%define gcc_release 65 %define _unpackaged_files_terminate_build 0 %define multilib_64_archs sparc64 ppc64 s390x x86_64 %define build_java 0 @@ -47,7 +47,7 @@ Requires: binutils >= 2.16.91.0.5-1 Conflicts: gdb < 5.1-2 Requires: glibc-devel >= 2.2.90-12 Requires: libgcc >= 3.4.0 -%ifarch %{multilib_64_archs} sparc ppc +%ifarch %{multilib_64_archs} sparc sparcv9 ppc # Ensure glibc{,-devel} is installed for both multilib arches BuildRequires: /lib/libc.so.6 /usr/lib/libc.so /lib64/libc.so.6 /usr/lib64/libc.so %endif @@ -125,13 +125,13 @@ Patch107: compat-libstdc++33-ldbl.patch %define _gnu %{nil} -%ifarch sparc +%ifarch sparc sparcv9 %define gcc_target_platform sparc64-%{_vendor}-linux %endif %ifarch ppc %define gcc_target_platform ppc64-%{_vendor}-linux %endif -%ifnarch sparc ppc +%ifnarch sparc sparcv9 ppc %define gcc_target_platform %{_target_cpu}-%{_vendor}-linux %endif @@ -273,7 +273,7 @@ OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-mtune=generic/-mcpu=i686/g'` OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-mtune=nocona//g'` OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-mtune=generic//g'` %endif -%ifarch sparc sparc64 +%ifarch sparc sparcv9 sparc64 OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-mcpu=ultrasparc/-mtune=ultrasparc/g'` %endif OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-Wall//g' -e 's/-Wp,-D_FORTIFY_SOURCE=2//g'` @@ -303,13 +303,13 @@ CC="$CC" CFLAGS="$OPT_FLAGS" CXXFLAGS="$OPT_FLAGS" XCFLAGS="$OPT_FLAGS" TCFLAGS= --enable-shared --enable-threads=posix --disable-checking \ --with-system-zlib --enable-__cxa_atexit \ --enable-languages=c,c++ --disable-libgcj \ -%ifarch sparc +%ifarch sparc sparcv9 --host=%{gcc_target_platform} --build=%{gcc_target_platform} --target=%{gcc_target_platform} --with-cpu=v7 %endif %ifarch ppc --host=%{gcc_target_platform} --build=%{gcc_target_platform} --target=%{gcc_target_platform} --with-cpu=default32 %endif -%ifnarch sparc ppc +%ifnarch sparc sparcv9 ppc --host=%{gcc_target_platform} %endif @@ -414,7 +414,7 @@ rm -f $RPM_BUILD_ROOT/lib*/libgcc_s* rm -f $RPM_BUILD_ROOT%{_prefix}/lib/lib*.so* rm -f $RPM_BUILD_ROOT%{_prefix}/lib/lib*.a %else -%ifarch sparc ppc +%ifarch sparc sparcv9 ppc rm -f $RPM_BUILD_ROOT%{_prefix}/lib64/lib*.so* rm -f $RPM_BUILD_ROOT%{_prefix}/lib64/lib*.a %endif @@ -434,6 +434,9 @@ rm -rf $RPM_BUILD_ROOT %{_prefix}/%{_lib}/libstdc++.so.5* %changelog +* Sat Feb 14 2009 Dennis Gilmore - 3.2.3-65 +- fix to build 32 bit sparc sparcv9 + * Tue Jul 15 2008 Tom "spot" Callaway - 3.2.3-64 - fix license tag - apply patches with fuzz=2