|
|
6fdc0f |
%define DATE 20060404
|
|
|
6fdc0f |
%define _unpackaged_files_terminate_build 0
|
|
|
6fdc0f |
%define multilib_64_archs sparc64 ppc64 s390x x86_64
|
|
|
6fdc0f |
%ifarch s390x
|
|
|
6fdc0f |
%define multilib_32_arch s390
|
|
|
6fdc0f |
%endif
|
|
|
6fdc0f |
%ifarch sparc64
|
|
|
6fdc0f |
%define multilib_32_arch sparc
|
|
|
6fdc0f |
%endif
|
|
|
6fdc0f |
%ifarch ppc64
|
|
|
6fdc0f |
%define multilib_32_arch ppc
|
|
|
6fdc0f |
%endif
|
|
|
6fdc0f |
%ifarch x86_64
|
|
|
6fdc0f |
%define multilib_32_arch i386
|
|
|
6fdc0f |
%endif
|
|
|
6fdc0f |
Summary: Compatibility GNU Compiler Collection
|
|
|
6fdc0f |
Name: compat-gcc-34
|
|
|
6fdc0f |
Version: 3.4.6
|
|
|
6fdc0f |
Release: 32%{?dist}
|
|
|
6fdc0f |
# libgcc and crtstuff have an exception which allows
|
|
|
6fdc0f |
# linking it into any kind of programs or shared libraries without
|
|
|
6fdc0f |
# restrictions.
|
|
|
6fdc0f |
License: GPLv2+ and GPLv2+ with exceptions
|
|
|
6fdc0f |
Group: Development/Languages
|
|
|
6fdc0f |
Source0: gcc-%{version}-%{DATE}.tar.bz2
|
|
|
6fdc0f |
Source1: dummylib.sh
|
|
|
6fdc0f |
URL: http://gcc.gnu.org
|
|
|
6fdc0f |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
6fdc0f |
# Need .eh_frame ld optimizations
|
|
|
6fdc0f |
# Need proper visibility support
|
|
|
6fdc0f |
# Need -pie support
|
|
|
6fdc0f |
# Need --as-needed/--no-as-needed support
|
|
|
6fdc0f |
# Need .weakref support
|
|
|
6fdc0f |
BuildRequires: binutils >= 2.16.91.0.5-1
|
|
|
6fdc0f |
BuildRequires: zlib-devel, gettext, dejagnu, bison, flex, texinfo
|
|
|
6fdc0f |
# Make sure pthread.h doesn't contain __thread tokens
|
|
|
6fdc0f |
BuildRequires: glibc-devel >= 2.2.90-12
|
|
|
6fdc0f |
# Need .eh_frame ld optimizations
|
|
|
6fdc0f |
# Need proper visibility support
|
|
|
6fdc0f |
# Need -pie support
|
|
|
6fdc0f |
# Need .weakref support
|
|
|
6fdc0f |
Requires: binutils >= 2.16.91.0.5-1
|
|
|
6fdc0f |
# Make sure gdb will understand DW_FORM_strp
|
|
|
6fdc0f |
Conflicts: gdb < 5.1-2
|
|
|
6fdc0f |
Requires: glibc-devel >= 2.2.90-12
|
|
|
6fdc0f |
Requires: libgcc >= 4.1.0
|
|
|
6fdc0f |
BuildRequires: elfutils-devel >= 0.72
|
|
|
6fdc0f |
%ifarch %{multilib_64_archs} sparc sparcv9 ppc
|
|
|
6fdc0f |
# Ensure glibc{,-devel} is installed for both multilib arches
|
|
|
6fdc0f |
BuildRequires: /lib/libc.so.6 /usr/lib/libc.so /lib64/libc.so.6 /usr/lib64/libc.so
|
|
|
6fdc0f |
%endif
|
|
|
6fdc0f |
Provides: bundled(libiberty)
|
|
|
6fdc0f |
|
|
|
6fdc0f |
Patch1: gcc34-multi32-hack.patch
|
|
|
6fdc0f |
Patch2: gcc34-ice-hack.patch
|
|
|
6fdc0f |
Patch3: gcc34-ppc64-m32-m64-multilib-only.patch
|
|
|
6fdc0f |
Patch4: gcc34-ia64-lib64.patch
|
|
|
6fdc0f |
Patch5: gcc34-java-nomulti.patch
|
|
|
6fdc0f |
Patch6: gcc34-gnuc-rh-release.patch
|
|
|
6fdc0f |
Patch7: gcc34-pr16104.patch
|
|
|
6fdc0f |
Patch8: gcc34-var-tracking-fix.patch
|
|
|
6fdc0f |
Patch9: gcc34-i386-movsi-insv.patch
|
|
|
6fdc0f |
Patch10: gcc34-pr18925.patch
|
|
|
6fdc0f |
Patch11: gcc34-pr14084.patch
|
|
|
6fdc0f |
Patch12: gcc34-hashtab-recursion.patch
|
|
|
6fdc0f |
Patch13: gcc34-java-jnilink.patch
|
|
|
6fdc0f |
Patch14: gcc34-pr21955.patch
|
|
|
6fdc0f |
Patch15: gcc34-vsb-stack.patch
|
|
|
6fdc0f |
Patch16: gcc34-pr18300.patch
|
|
|
6fdc0f |
Patch17: gcc34-rh156291.patch
|
|
|
6fdc0f |
Patch18: gcc34-weakref.patch
|
|
|
6fdc0f |
Patch19: gcc34-dwarf2-usefbreg.patch
|
|
|
6fdc0f |
Patch20: gcc34-dwarf2-prefer-1elt-vartracking.patch
|
|
|
6fdc0f |
Patch21: gcc34-dwarf2-pr20268.patch
|
|
|
6fdc0f |
Patch22: gcc34-dwarf2-inline-details.patch
|
|
|
6fdc0f |
Patch23: gcc34-dwarf2-frame_base.patch
|
|
|
6fdc0f |
Patch24: gcc34-dwarf2-i386-multreg1.patch
|
|
|
6fdc0f |
Patch25: gcc34-dwarf2-i386-multreg2.patch
|
|
|
6fdc0f |
Patch26: gcc34-rh176182.patch
|
|
|
6fdc0f |
Patch27: gcc34-pr11953.patch
|
|
|
6fdc0f |
Patch28: gcc34-pr23591.patch
|
|
|
6fdc0f |
Patch29: gcc34-pr26208.patch
|
|
|
6fdc0f |
Patch30: gcc34-pr8788.patch
|
|
|
6fdc0f |
Patch31: gcc34-rh137200.patch
|
|
|
6fdc0f |
Patch32: gcc34-rh172117.patch
|
|
|
6fdc0f |
Patch33: gcc34-rh172876.patch
|
|
|
6fdc0f |
Patch34: gcc34-rh178062.patch
|
|
|
6fdc0f |
Patch35: gcc34-pr21412.patch
|
|
|
6fdc0f |
Patch36: gcc34-sw2438.patch
|
|
|
6fdc0f |
Patch37: gcc34-pr26208-workaround.patch
|
|
|
6fdc0f |
Patch38: gcc34-libgcc_eh-hidden.patch
|
|
|
6fdc0f |
Patch39: gcc34-frame-base-loclist.patch
|
|
|
6fdc0f |
Patch40: gcc34-CVE-2006-3619.patch
|
|
|
6fdc0f |
Patch41: gcc34-dwarf2-inline-details-fix.patch
|
|
|
6fdc0f |
Patch42: gcc34-CXXABI131.patch
|
|
|
6fdc0f |
Patch43: gcc34-rh205919.patch
|
|
|
6fdc0f |
Patch44: gcc34-rh207277.patch
|
|
|
6fdc0f |
Patch45: gcc34-var-tracking-coalesce.patch
|
|
|
6fdc0f |
Patch46: gcc34-java-zoneinfo.patch
|
|
|
6fdc0f |
Patch47: gcc34-libgcc-additions.patch
|
|
|
6fdc0f |
Patch48: gcc34-pr24975.patch
|
|
|
6fdc0f |
Patch49: gcc34-rh233941.patch
|
|
|
6fdc0f |
Patch50: gcc34-rh234515.patch
|
|
|
6fdc0f |
Patch51: gcc34-rh235008.patch
|
|
|
6fdc0f |
Patch52: gcc34-rh235255.patch
|
|
|
6fdc0f |
Patch53: gcc34-rh242685.patch
|
|
|
6fdc0f |
|
|
|
6fdc0f |
Patch100: gcc34-ldbl-hack.patch
|
|
|
6fdc0f |
Patch101: gcc34-makeinfo.patch
|
|
|
6fdc0f |
Patch102: gcc34-bison4.patch
|
|
|
6fdc0f |
Patch103: gcc34-pr56258.patch
|
|
|
6fdc0f |
|
|
|
6fdc0f |
%define _gnu %{nil}
|
|
|
6fdc0f |
%ifarch sparc sparcv9
|
|
|
6fdc0f |
%define gcc_target_platform sparc64-%{_vendor}-linux
|
|
|
6fdc0f |
%endif
|
|
|
6fdc0f |
%ifarch ppc
|
|
|
6fdc0f |
%define gcc_target_platform ppc64-%{_vendor}-linux
|
|
|
6fdc0f |
%endif
|
|
|
6fdc0f |
%ifnarch sparc sparcv9 ppc
|
|
|
6fdc0f |
%define gcc_target_platform %{_target_cpu}-%{_vendor}-linux
|
|
|
6fdc0f |
%endif
|
|
|
6fdc0f |
|
|
|
6fdc0f |
%description
|
|
|
6fdc0f |
This package includes a GCC 3.4.6-RH compatibility compiler.
|
|
|
6fdc0f |
|
|
|
6fdc0f |
%package -n compat-libf2c-34
|
|
|
6fdc0f |
Summary: Fortran 77 compatibility runtime
|
|
|
6fdc0f |
Group: System Environment/Libraries
|
|
|
6fdc0f |
Autoreq: true
|
|
|
6fdc0f |
Obsoletes: libf2c, compat-libf2c-32
|
|
|
6fdc0f |
Obsoletes: compat-gcc-34, compat-gcc-34-c++, compat-gcc-34-g77
|
|
|
6fdc0f |
|
|
|
6fdc0f |
%description -n compat-libf2c-34
|
|
|
6fdc0f |
This package contains Fortran 77 shared library which is needed to run
|
|
|
6fdc0f |
Fortran 77 dynamically linked programs built by g77 3.4.x
|
|
|
6fdc0f |
|
|
|
6fdc0f |
%prep
|
|
|
6fdc0f |
%setup -q -n gcc-%{version}-%{DATE}
|
|
|
6fdc0f |
%ifarch sparc sparcv9 ppc
|
|
|
6fdc0f |
%patch1 -p0 -b .multi32-hack~
|
|
|
6fdc0f |
%endif
|
|
|
6fdc0f |
%patch2 -p0 -b .ice-hack~
|
|
|
6fdc0f |
%patch3 -p0 -b .ppc64-m32-m64-multilib-only~
|
|
|
6fdc0f |
%ifarch ia64
|
|
|
6fdc0f |
%if "%{_lib}" == "lib64"
|
|
|
6fdc0f |
%patch4 -p0 -b .ia64-lib64~
|
|
|
6fdc0f |
%endif
|
|
|
6fdc0f |
%endif
|
|
|
6fdc0f |
%patch5 -p0 -b .java-nomulti~
|
|
|
6fdc0f |
%patch6 -p0 -b .gnuc-rh-release~
|
|
|
6fdc0f |
%patch7 -p0 -b .pr16104~
|
|
|
6fdc0f |
%patch8 -p0 -b .var-tracking-fix~
|
|
|
6fdc0f |
%patch9 -p0 -b .i386-movsi-insv~
|
|
|
6fdc0f |
%patch10 -p0 -b .pr18925~
|
|
|
6fdc0f |
%patch11 -p0 -b .pr14084~
|
|
|
6fdc0f |
%patch12 -p0 -b .hashtab-recursion~
|
|
|
6fdc0f |
%patch13 -p0 -b .java-jnilink~
|
|
|
6fdc0f |
%patch14 -p0 -b .pr21955~
|
|
|
6fdc0f |
%patch15 -p0 -b .vsb-stack~
|
|
|
6fdc0f |
%patch16 -p0 -b .pr18300~
|
|
|
6fdc0f |
%patch17 -p0 -b .rh156291~
|
|
|
6fdc0f |
%patch18 -p0 -b .weakref~
|
|
|
6fdc0f |
%patch19 -p0 -b .dwarf2-usefbreg~
|
|
|
6fdc0f |
%patch20 -p0 -b .dwarf2-prefer-1elt-vartracking~
|
|
|
6fdc0f |
%patch21 -p0 -b .dwarf2-pr20268~
|
|
|
6fdc0f |
%patch22 -p0 -b .dwarf2-inline-details~
|
|
|
6fdc0f |
%patch23 -p0 -b .dwarf2-frame_base~
|
|
|
6fdc0f |
%patch24 -p0 -b .dwarf2-i386-multreg1~
|
|
|
6fdc0f |
%patch25 -p0 -b .dwarf2-i386-multreg2~
|
|
|
6fdc0f |
%patch26 -p0 -b .rh176182~
|
|
|
6fdc0f |
%patch27 -p0 -b .pr11953~
|
|
|
6fdc0f |
%patch28 -p0 -b .pr23591~
|
|
|
6fdc0f |
%patch29 -p0 -b .pr26208~
|
|
|
6fdc0f |
%patch30 -p0 -b .pr8788~
|
|
|
6fdc0f |
%patch31 -p0 -b .rh137200~
|
|
|
6fdc0f |
%patch32 -p0 -b .rh172117~
|
|
|
6fdc0f |
%patch33 -p0 -b .rh172876~
|
|
|
6fdc0f |
%patch34 -p0 -b .rh178062~
|
|
|
6fdc0f |
%patch35 -p0 -b .pr21412~
|
|
|
6fdc0f |
%patch36 -p0 -b .sw2438~
|
|
|
6fdc0f |
%patch37 -p0 -b .pr26208-workaround~
|
|
|
6fdc0f |
%patch38 -p0 -b .libgcc_eh-hidden~
|
|
|
6fdc0f |
%patch39 -p0 -b .frame-base-loclist~
|
|
|
6fdc0f |
%patch40 -p0 -b .CVE-2006-3619~
|
|
|
6fdc0f |
%patch41 -p0 -b .dwarf2-inline-details-fix~
|
|
|
6fdc0f |
%patch42 -p0 -b .CXXABI131~
|
|
|
6fdc0f |
%patch43 -p0 -b .rh205919~
|
|
|
6fdc0f |
%patch44 -p0 -b .rh207277~
|
|
|
6fdc0f |
%patch45 -p0 -b .var-tracking-coalesce~
|
|
|
6fdc0f |
%patch46 -p0 -b .java-zoneinfo~
|
|
|
6fdc0f |
%patch47 -p0 -b .libgcc-additions~
|
|
|
6fdc0f |
%patch48 -p0 -b .pr24975~
|
|
|
6fdc0f |
%patch49 -p0 -b .rh233941~
|
|
|
6fdc0f |
%patch50 -p0 -b .rh234515~
|
|
|
6fdc0f |
%patch51 -p0 -b .rh235008~
|
|
|
6fdc0f |
%patch52 -p0 -b .rh235255~
|
|
|
6fdc0f |
%patch53 -p0 -b .rh242685~
|
|
|
6fdc0f |
|
|
|
6fdc0f |
%patch100 -p0 -b .ldbl-hack~
|
|
|
6fdc0f |
%patch101 -p0 -b .makeinfo~
|
|
|
6fdc0f |
%patch102 -p0 -b .bison4
|
|
|
6fdc0f |
%patch103 -p0 -b .pr56258~
|
|
|
6fdc0f |
|
|
|
6fdc0f |
sed -i -e 's/struct siginfo/siginfo_t/' gcc/config/*/linux*.h
|
|
|
6fdc0f |
|
|
|
6fdc0f |
perl -pi -e 's/3\.4\.7/3.4.6/' gcc/version.c
|
|
|
6fdc0f |
perl -pi -e 's/"%{version}"/"%{version} \(release\)"/' gcc/version.c
|
|
|
6fdc0f |
perl -pi -e 's/\((prerelease|experimental|release|Red Hat[^)]*)\)/\(Red Hat %{version}-%{release}\)/' gcc/version.c
|
|
|
6fdc0f |
|
|
|
6fdc0f |
./contrib/gcc_update --touch
|
|
|
6fdc0f |
|
|
|
6fdc0f |
%build
|
|
|
6fdc0f |
|
|
|
6fdc0f |
rm -fr obj-%{gcc_target_platform}
|
|
|
6fdc0f |
mkdir obj-%{gcc_target_platform}
|
|
|
6fdc0f |
cd obj-%{gcc_target_platform}
|
|
|
6fdc0f |
|
|
|
6fdc0f |
mkdir -p ld_hack
|
|
|
6fdc0f |
cat > ld_hack/ld <<\EOF
|
|
|
6fdc0f |
#!/bin/sh
|
|
|
6fdc0f |
case " $* " in *\ -r\ *) exec /usr/bin/ld "$@";; esac
|
|
|
6fdc0f |
exec /usr/bin/ld --build-id "$@"
|
|
|
6fdc0f |
EOF
|
|
|
6fdc0f |
chmod 755 ld_hack/ld
|
|
|
6fdc0f |
export PATH=`pwd`/ld_hack/${PATH:+:$PATH}
|
|
|
6fdc0f |
|
|
|
6fdc0f |
if [ ! -f /usr/lib/locale/de_DE/LC_CTYPE ]; then
|
|
|
6fdc0f |
mkdir locale
|
|
|
6fdc0f |
localedef -f ISO-8859-1 -i de_DE locale/de_DE
|
|
|
6fdc0f |
export LOCPATH=`pwd`/locale:/usr/lib/locale
|
|
|
6fdc0f |
fi
|
|
|
6fdc0f |
|
|
|
6fdc0f |
CC=gcc
|
|
|
6fdc0f |
OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-fno-rtti//g' -e 's/-fno-exceptions//g'`
|
|
|
6fdc0f |
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-m64//g;s/-m32//g;s/-m31//g'`
|
|
|
6fdc0f |
%ifarch %{ix86}
|
|
|
6fdc0f |
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-mtune=pentium4/-mtune=i686/g'`
|
|
|
6fdc0f |
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-mtune=generic/-mtune=i686/g'`
|
|
|
6fdc0f |
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-mtune=atom/-mtune=i686/g'`
|
|
|
6fdc0f |
%endif
|
|
|
6fdc0f |
%ifarch x86_64
|
|
|
6fdc0f |
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-mtune=nocona//g'`
|
|
|
6fdc0f |
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-mtune=generic//g'`
|
|
|
6fdc0f |
%endif
|
|
|
6fdc0f |
%ifarch sparc sparcv9 sparc64
|
|
|
6fdc0f |
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-mcpu=ultrasparc/-mtune=ultrasparc/g'`
|
|
|
6fdc0f |
%endif
|
|
|
6fdc0f |
%ifarch s390 s390x
|
|
|
6fdc0f |
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-march=z9-109//g;s/-march=z10//g;s/-march=z196//g;s/-mtune=z10//g;s/-mtune=zEC12//g'`
|
|
|
6fdc0f |
%endif
|
|
|
6fdc0f |
%ifarch ppc ppc64
|
|
|
6fdc0f |
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-march=power[678]//g;s/-mcpu=power[678]//g;s/-mtune=power[678]//g'`
|
|
|
6fdc0f |
%endif
|
|
|
6fdc0f |
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-Wall//g' -e 's/-Wp,-D_FORTIFY_SOURCE=2//g'`
|
|
|
6fdc0f |
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-fexceptions//g' -e 's/-fasynchronous-unwind-tables//g'`
|
|
|
6fdc0f |
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-grecord-gcc-switches//g' -e 's/-fstack-protector-strong//g'`
|
|
|
6fdc0f |
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-fstack-protector//g' -e 's/--param=ssp-buffer-size=[0-9]*//g'`
|
|
|
6fdc0f |
%ifarch sparc64
|
|
|
6fdc0f |
cat > gcc64 <<"EOF"
|
|
|
6fdc0f |
#!/bin/sh
|
|
|
6fdc0f |
exec /usr/bin/gcc -m64 "$@"
|
|
|
6fdc0f |
EOF
|
|
|
6fdc0f |
chmod +x gcc64
|
|
|
6fdc0f |
CC=`pwd`/gcc64
|
|
|
6fdc0f |
%endif
|
|
|
6fdc0f |
%ifarch ppc64
|
|
|
6fdc0f |
if gcc -m64 -xc -S /dev/null -o - > /dev/null 2>&1; then
|
|
|
6fdc0f |
cat > gcc64 <<"EOF"
|
|
|
6fdc0f |
#!/bin/sh
|
|
|
6fdc0f |
exec /usr/bin/gcc -m64 "$@"
|
|
|
6fdc0f |
EOF
|
|
|
6fdc0f |
chmod +x gcc64
|
|
|
6fdc0f |
CC=`pwd`/gcc64
|
|
|
6fdc0f |
fi
|
|
|
6fdc0f |
%endif
|
|
|
6fdc0f |
CC="$CC" CFLAGS="$OPT_FLAGS" CXXFLAGS="$OPT_FLAGS" XCFLAGS="$OPT_FLAGS" TCFLAGS="$OPT_FLAGS" \
|
|
|
6fdc0f |
GCJFLAGS="$OPT_FLAGS" \
|
|
|
6fdc0f |
../configure --prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir} \
|
|
|
6fdc0f |
--enable-shared --enable-threads=posix --disable-checking \
|
|
|
6fdc0f |
--with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions \
|
|
|
6fdc0f |
--enable-languages=c,f77 --disable-libgcj \
|
|
|
6fdc0f |
%ifarch sparc sparcv9
|
|
|
6fdc0f |
--host=%{gcc_target_platform} --build=%{gcc_target_platform} --target=%{gcc_target_platform} --with-cpu=v7
|
|
|
6fdc0f |
%endif
|
|
|
6fdc0f |
%ifarch ppc
|
|
|
6fdc0f |
--host=%{gcc_target_platform} --build=%{gcc_target_platform} --target=%{gcc_target_platform} --with-cpu=default32
|
|
|
6fdc0f |
%endif
|
|
|
6fdc0f |
%ifnarch sparc sparcv9 ppc
|
|
|
6fdc0f |
--host=%{gcc_target_platform}
|
|
|
6fdc0f |
%endif
|
|
|
6fdc0f |
|
|
|
6fdc0f |
make %{?_smp_mflags} BOOT_CFLAGS="$OPT_FLAGS" bootstrap-lean
|
|
|
6fdc0f |
|
|
|
6fdc0f |
# Make sure we are using system libgcc_s, as system libstdc++.so.6 might
|
|
|
6fdc0f |
# use unwinding features that require it.
|
|
|
6fdc0f |
mv gcc/libgcc_s.so.1{,.bak}
|
|
|
6fdc0f |
ln -sf /%{_lib}/libgcc_s.so.1 gcc/libgcc_s.so.1
|
|
|
6fdc0f |
|
|
|
6fdc0f |
# run the tests.
|
|
|
6fdc0f |
make %{?_smp_mflags} -k check || :
|
|
|
6fdc0f |
echo ====================TESTING=========================
|
|
|
6fdc0f |
( ../contrib/test_summary || : ) 2>&1 | sed -n '/^cat.*EOF/,/^EOF/{/^cat.*EOF/d;/^EOF/d;/^LAST_UPDATED:/d;p;}'
|
|
|
6fdc0f |
echo ====================TESTING END=====================
|
|
|
6fdc0f |
|
|
|
6fdc0f |
%install
|
|
|
6fdc0f |
rm -fr $RPM_BUILD_ROOT
|
|
|
6fdc0f |
|
|
|
6fdc0f |
export PATH=`pwd`/obj-%{gcc_target_platform}/ld_hack/${PATH:+:$PATH}
|
|
|
6fdc0f |
|
|
|
6fdc0f |
cd obj-%{gcc_target_platform}
|
|
|
6fdc0f |
|
|
|
6fdc0f |
if [ ! -f /usr/lib/locale/de_DE/LC_CTYPE ]; then
|
|
|
6fdc0f |
export LOCPATH=`pwd`/locale:/usr/lib/locale
|
|
|
6fdc0f |
fi
|
|
|
6fdc0f |
|
|
|
6fdc0f |
TARGET_PLATFORM=%{gcc_target_platform}
|
|
|
6fdc0f |
FULLPATH=$RPM_BUILD_ROOT%{_prefix}/lib/gcc/%{gcc_target_platform}/%{version}
|
|
|
6fdc0f |
mkdir -p $FULLPATH/include
|
|
|
6fdc0f |
|
|
|
6fdc0f |
make prefix=$RPM_BUILD_ROOT%{_prefix} mandir=$RPM_BUILD_ROOT%{_mandir} \
|
|
|
6fdc0f |
infodir=$RPM_BUILD_ROOT%{_infodir} install-target-libf2c
|
|
|
6fdc0f |
|
|
|
6fdc0f |
rm -f $RPM_BUILD_ROOT%{_prefix}/%{_lib}/lib*.*a
|
|
|
6fdc0f |
chmod 755 $RPM_BUILD_ROOT%{_prefix}/%{_lib}/libg2c.so.0.*
|
|
|
6fdc0f |
|
|
|
6fdc0f |
%ifarch %{multilib_64_archs}
|
|
|
6fdc0f |
# Remove libraries for the other arch on multilib arches
|
|
|
6fdc0f |
rm -f $RPM_BUILD_ROOT%{_prefix}/lib/lib*.so*
|
|
|
6fdc0f |
rm -f $RPM_BUILD_ROOT%{_prefix}/lib/lib*.a
|
|
|
6fdc0f |
%else
|
|
|
6fdc0f |
%ifarch sparc sparcv9 ppc
|
|
|
6fdc0f |
rm -f $RPM_BUILD_ROOT%{_prefix}/lib64/lib*.so*
|
|
|
6fdc0f |
rm -f $RPM_BUILD_ROOT%{_prefix}/lib64/lib*.a
|
|
|
6fdc0f |
%endif
|
|
|
6fdc0f |
%endif
|
|
|
6fdc0f |
|
|
|
6fdc0f |
%clean
|
|
|
6fdc0f |
rm -rf $RPM_BUILD_ROOT
|
|
|
6fdc0f |
|
|
|
6fdc0f |
%post -n compat-libf2c-34 -p /sbin/ldconfig
|
|
|
6fdc0f |
|
|
|
6fdc0f |
%postun -n compat-libf2c-34 -p /sbin/ldconfig
|
|
|
6fdc0f |
|
|
|
6fdc0f |
%files -n compat-libf2c-34
|
|
|
6fdc0f |
%defattr(-,root,root)
|
|
|
6fdc0f |
%{_prefix}/%{_lib}/libg2c.so.0*
|
|
|
6fdc0f |
%doc gcc/f/ChangeLog* gcc/COPYING*
|
|
|
6fdc0f |
|
|
|
6fdc0f |
%changelog
|
|
|
6fdc0f |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 3.4.6-32
|
|
|
6fdc0f |
- Mass rebuild 2014-01-24
|
|
|
6fdc0f |
|
|
|
6fdc0f |
* Tue Jan 7 2014 Jakub Jelinek <jakub@redhat.com> 3.4.6-31
|
|
|
6fdc0f |
- filter out -fstack-protector-strong (#1048851)
|
|
|
6fdc0f |
|
|
|
6fdc0f |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 3.4.6-31
|
|
|
6fdc0f |
- Mass rebuild 2013-12-27
|
|
|
6fdc0f |
|
|
|
6fdc0f |
* Fri Jul 19 2013 Jakub Jelinek <jakub@redhat.com> 3.4.6-30
|
|
|
6fdc0f |
- only include compat-libf2c-34 subpackages and nothing else
|
|
|
6fdc0f |
|
|
|
6fdc0f |
* Wed Feb 20 2013 Jakub Jelinek <jakub@redhat.com> 3.4.6-29
|
|
|
6fdc0f |
- don't conflict with libstdc++ 4.8.x, it is still backwards ABI compatible
|
|
|
6fdc0f |
|
|
|
6fdc0f |
* Wed Feb 20 2013 Jakub Jelinek <jakub@redhat.com> 3.4.6-28
|
|
|
6fdc0f |
- use siginfo_t instead of struct siginfo
|
|
|
6fdc0f |
- fix build with makeinfo >= 5.0 (PR bootstrap/56258)
|
|
|
6fdc0f |
|
|
|
6fdc0f |
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.6-27
|
|
|
6fdc0f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
6fdc0f |
|
|
|
6fdc0f |
* Mon Oct 15 2012 Jon Ciesla <limburgher@gmail.com> - 3.4.6-26
|
|
|
6fdc0f |
- Provides: bundled(libiberty)
|
|
|
6fdc0f |
|
|
|
6fdc0f |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.6-25
|
|
|
6fdc0f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
6fdc0f |
|
|
|
6fdc0f |
* Wed Feb 1 2012 Jakub Jelinek <jakub@redhat.com> 3.4.6-24
|
|
|
6fdc0f |
- don't conflict with libstdc++ 4.7.x, it is still backwards ABI compatible
|
|
|
6fdc0f |
|
|
|
6fdc0f |
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.6-23
|
|
|
6fdc0f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
6fdc0f |
|
|
|
6fdc0f |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.6-22
|
|
|
6fdc0f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
6fdc0f |
|
|
|
6fdc0f |
* Fri Jan 28 2011 Jakub Jelinek <jakub@redhat.com> 3.4.6-21
|
|
|
6fdc0f |
- don't conflict with libstdc++ 4.6.x, it is still backwards ABI compatible
|
|
|
6fdc0f |
|
|
|
6fdc0f |
* Thu Jul 8 2010 Jakub Jelinek <jakub@redhat.com> 3.4.6-20
|
|
|
6fdc0f |
- don't conflict with libstdc++ 4.5.x, it is still backwards ABI compatible
|
|
|
6fdc0f |
|
|
|
6fdc0f |
* Mon Jun 28 2010 Jakub Jelinek <jakub@redhat.com> 3.4.6-19
|
|
|
6fdc0f |
- add %%{?dist} (#604538)
|
|
|
6fdc0f |
|
|
|
6fdc0f |
* Mon Nov 30 2009 Dennis Gregorovic <dgregor@redhat.com> - 3.4.6-18.1
|
|
|
6fdc0f |
- Rebuilt for RHEL 6
|
|
|
6fdc0f |
|
|
|
6fdc0f |
* Mon Aug 31 2009 Karsten Hopp <karsten@redhat.com> 3.4.6-18
|
|
|
6fdc0f |
- strip -march=z9-109 and -mtune=z10 from OPT_FLAGS on s390, s390x
|
|
|
6fdc0f |
(#519507)
|
|
|
6fdc0f |
|
|
|
6fdc0f |
* Fri Jul 31 2009 Jakub Jelinek <jakub@redhat.com> 3.4.6-17
|
|
|
6fdc0f |
- make sure to use system libgcc_s.so.1 instead of gcc34 one during
|
|
|
6fdc0f |
testing
|
|
|
6fdc0f |
|
|
|
6fdc0f |
* Tue Jul 28 2009 Jakub Jelinek <jakub@redhat.com> 3.4.6-16
|
|
|
6fdc0f |
- replace -mtune=atom in $RPM_OPT_FLAGS with something that
|
|
|
6fdc0f |
GCC 3.4.6 groks
|
|
|
6fdc0f |
|
|
|
6fdc0f |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> 3.4.6-15
|
|
|
6fdc0f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
6fdc0f |
|
|
|
6fdc0f |
* Fri Jun 12 2009 Dennis Gilmore <dennis@ausil.us> - 3.4.6-14
|
|
|
6fdc0f |
- setup to build sparcv9
|
|
|
6fdc0f |
|
|
|
6fdc0f |
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.6-13
|
|
|
6fdc0f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
6fdc0f |
|
|
|
6fdc0f |
* Sun Feb 10 2008 Jakub Jelinek <jakub@redhat.com> 3.4.6-12
|
|
|
6fdc0f |
- rebuild with gcc 4.4, allow libstdc++ 4.1.0 ... 4.4.x
|
|
|
6fdc0f |
|
|
|
6fdc0f |
* Fri Feb 1 2008 Jakub Jelinek <jakub@redhat.com> 3.4.6-9
|
|
|
6fdc0f |
- rebuild with gcc 4.3, allow libstdc++ 4.1.0 ... 4.3.x
|
|
|
6fdc0f |
|
|
|
6fdc0f |
* Tue Oct 16 2007 Jakub Jelinek <jakub@redhat.com> 3.4.6-8
|
|
|
6fdc0f |
- update License tag
|
|
|
6fdc0f |
- build with ld --build-id
|
|
|
6fdc0f |
- grok makeinfo >= 4.10 during configury
|
|
|
6fdc0f |
- avoid aliasing warnings in libstdc++-v3 headers when compiled
|
|
|
6fdc0f |
with g++ 4.x (Paolo Carlini, PR libstdc++/24975, #240020)
|
|
|
6fdc0f |
- fix RTL expansion of COMPLEX_EXPR (#233941)
|
|
|
6fdc0f |
- fix deque<>::erase(iterator, iterator) (Steve LoBasso,
|
|
|
6fdc0f |
Paolo Carlini, #234515)
|
|
|
6fdc0f |
- fix french and kinyarwanda translations (#235008)
|
|
|
6fdc0f |
- handle PARALLELs in GCSE store motion (Alexandre Oliva, #235255)
|
|
|
6fdc0f |
- ensure zero termination for invalid, overly long, std::__enc_traits
|
|
|
6fdc0f |
internal or external character set names (Jatin Nansi, #242685)
|
|
|
6fdc0f |
|
|
|
6fdc0f |
* Sat Mar 3 2007 Jakub Jelinek <jakub@redhat.com> 3.4.6-7
|
|
|
6fdc0f |
- ignore install-info failures in scriptlets (#223680)
|
|
|
6fdc0f |
- don't include cpp.debug in compat-gcc-34-debuginfo (#227021)
|
|
|
6fdc0f |
- fix .debug_line for inline function parameter blocks
|
|
|
6fdc0f |
(Alexandre Oliva, #214353)
|
|
|
6fdc0f |
- fix hang in vt_find_locations with -O{2,3} -g
|
|
|
6fdc0f |
(Alexandre Oliva, #216695, #218377)
|
|
|
6fdc0f |
- fix if-conversion ICE (Eric Botcazou, #207277)
|
|
|
6fdc0f |
- fix template instantiation ICE (Alexandre Oliva, #205919)
|
|
|
6fdc0f |
|
|
|
6fdc0f |
* Wed Aug 23 2006 Jakub Jelinek <jakub@redhat.com> 3.4.6-4
|
|
|
6fdc0f |
- buildrequire elfutils-devel, so that libgcc_s is properly built
|
|
|
6fdc0f |
on ia64
|
|
|
6fdc0f |
- on ppc*/s390* make sure all needed math *l stubs are included
|
|
|
6fdc0f |
- add -lnldbl_nonshared to ppc*/s390* specs
|
|
|
6fdc0f |
|
|
|
6fdc0f |
* Wed Aug 9 2006 Jakub Jelinek <jakub@redhat.com> 3.4.6-3
|
|
|
6fdc0f |
- new compat package
|