Changeset 062927e in rtems


Ignore:
Timestamp:
Apr 15, 2010, 4:45:48 PM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
ac367f3
Parents:
9e95e54
Message:

gcc-4.5.0

Location:
contrib/crossrpms/freebsd7.2/i586
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • contrib/crossrpms/freebsd7.2/i586/Makefile.am

    r9e95e54 r062927e  
    66
    77FREEBSD_VERS = 7.2
    8 FREEBSD_RPMREL = 0.20090827.1
     8FREEBSD_RPMREL = 0.20091130.1
    99EXTRA_DIST += libs.add
    1010EXTRA_DIST += target-libs.add
     
    1717BINUTILS_OPTS +=
    1818
    19 GCC_VERS = 4.4.2
     19GCC_VERS = 4.5.0
    2020GCC_PKGVERS = $(GCC_VERS)
    21 GCC_RPMREL = 0.20100317.1
     21GCC_RPMREL = 0.20100415.1
    2222include ../gcc.am
    2323GCC_OPTS += --languages=cxx,fortran,objc
  • contrib/crossrpms/freebsd7.2/i586/i586-pc-freebsd7.2-binutils.spec

    r9e95e54 r062927e  
    5050BuildRequires:  texinfo >= 4.2
    5151%else
    52 %if "i586-pc-freebsd7.2" == "i686-pc-cygwin"
    53 BuildRequires:  texinfo >= 4.2
    54 %endif
    5552%endif
    5653BuildRequires:  flex
  • contrib/crossrpms/freebsd7.2/i586/i586-pc-freebsd7.2-gcc.spec

    r9e95e54 r062927e  
    3232
    3333
    34 %define gcc_pkgvers 4.4.2
    35 %define gcc_version 4.4.2
    36 %define gcc_rpmvers %{expand:%(echo "4.4.2" | tr - _ )}
     34%define gcc_pkgvers 4.5.0
     35%define gcc_version 4.5.0
     36%define gcc_rpmvers %{expand:%(echo "4.5.0" | tr - _ )}
    3737
    3838
     
    4242Group:          Development/Tools
    4343Version:        %{gcc_rpmvers}
    44 Release:        0.20100317.1%{?dist}
     44Release:        0.20100415.1%{?dist}
    4545License:        GPL
    4646URL:            http://gcc.gnu.org
     
    5151BuildRequires:  %{_host_rpmprefix}gcc
    5252
     53# FIXME: Disable lto for now, to avoid dependencies on libelf
     54%bcond_with lto
     55
     56# FIXME: Disamble python gdb scripts
     57# ATM, no idea how to package them
     58%bcond_with pygdb
     59
     60# FIXME: Disable GCC-plugin
     61# Bug in gcc-4.5-20100318, doesn't build them on x86_84 hosts.
     62%bcond_with plugin
     63
     64# versions of libraries, we conditionally bundle if necessary
     65%global mpc_version     0.8.1
     66%global mpfr_version    2.4.1
     67%global gmp_version     4.3.2
     68%global libelf_version  0.8.13
     69
     70# versions of libraries these distros are known to ship
     71%if 0%{?fc13}
     72%global mpc_provided 0.8.1
     73%global mpfr_provided 2.4.1
     74%global gmp_provided 4.3.1
     75%endif
     76
     77%if 0%{?fc12}
     78%global mpc_provided 0.8
     79%global mpfr_provided 2.4.1
     80%global gmp_provided 4.3.1
     81%endif
     82
     83%if 0%{?fc11}
     84%global mpc_provided %{nil}
     85%global mpfr_provided 2.4.1
     86%global gmp_provided 4.2.4
     87%endif
     88
     89%if 0%{?rhel5}
     90%global mpc_provided %{nil}
     91%global mpfr_provided %{nil}
     92%global gmp_provided 4.1.4
     93%endif
     94
     95%if 0%{?suse11_0}
     96%global mpc_provided %{nil}
     97%global mpfr_provided 2.3.1
     98%global gmp_provided 4.2.2
     99%endif
     100
     101%if 0%{?suse11_1}
     102%global mpc_provided %{nil}
     103%global mpfr_provided 2.3.2
     104%global gmp_provided 4.2.3
     105%endif
     106
     107%if 0%{?suse11_2}
     108%global mpc_provided 0.7
     109%global mpfr_provided 2.4.1
     110%global gmp_provided 4.3.1
     111%endif
     112
     113%if 0%{?cygwin}
     114%global mpc_provided 0.8
     115%global mpfr_provided 2.4.1
     116%global gmp_provided 4.3.1
     117%endif
     118
     119%if 0%{?mingw32}
     120%global mpc_provided 0.8.1
     121%global mpfr_provided 2.4.1
     122%global gmp_provided 4.3.2
     123%endif
     124
     125%if "%{gcc_version}" >= "4.2.0"
     126%define gmp_required            4.1
     127%define mpfr_required           2.2.1
     128%endif
     129
    53130%if "%{gcc_version}" >= "4.3.0"
    54 %define _gmp_minvers            4.1
    55 %else
    56 %if "%{gcc_version}" >= "4.2.0"
    57 %define _gmp_minvers            4.1
    58 %endif
    59 %endif
    60 
    61 %if %{defined _gmp_minvers}
    62 BuildRequires: gmp-devel >= %{_gmp_minvers}
    63 %if "%{_build}" != "%{_host}"
    64 BuildRequires:  %{_host_rpmprefix}gmp-devel >= %{_gmp_minvers}
    65 %endif
     131%define gmp_required            4.1
     132%define mpfr_required           2.3.1
    66133%endif
    67134
    68135%if "%{gcc_version}" >= "4.3.3"
    69 %define _cloog_minvers 0.15
    70 %endif
    71 
    72 %if %{defined _cloog_minvers}
    73 %{?fc11:BuildRequires: cloog-ppl-devel >= %_cloog_minvers}
    74 %{?fc12:BuildRequires: cloog-ppl-devel >= %_cloog_minvers}
    75 %{?fc13:BuildRequires: cloog-ppl-devel >= %_cloog_minvers}
    76 %{?suse11_2:BuildRequires: cloog-devel >= %_cloog_minvers, ppl-devel}
    77 %{?suse11_1:BuildRequires: cloog-devel >= %_cloog_minvers, ppl-devel}
     136%define cloog_required          0.15
    78137%endif
    79138
    80139%if "%{gcc_version}" >= "4.4.0"
    81 %define _mpfr_minvers   2.3.2
    82 %define mpfr_version    2.4.1
    83 %else
    84 %if "%{gcc_version}" >= "4.3.0"
    85 %define _mpfr_minvers   2.3.1
    86 %define mpfr_version    2.3.2
    87 %else
    88 %if "%{gcc_version}" >= "4.2.0"
    89 %define _mpfr_minvers   2.2.1
    90 %define mpfr_version    2.3.2
    91 %endif
    92 %endif
    93 %endif
    94 
    95 %if %{defined _mpfr_minvers}
    96 # FIXME: This is an ugly cludge
    97 %{?fc11:%global mpfr_provided 2.4.1}
    98 %{?fc12:%global mpfr_provided 2.4.1}
    99 %{?fc13:%global mpfr_provided 2.4.1}
    100 %{?suse11_0:%global mpfr_provided 2.3.1}
    101 %{?suse11_1:%global mpfr_provided 2.3.2}
    102 %{?suse11_2:%global mpfr_provided 2.4.1}
    103 %{?cygwin:%global mpfr_provided 2.4.1}
    104 %{?mingw32:%global mpfr_provided %{nil}}
    105 
    106 %if %{defined mpfr_provided}
    107 %if "%{mpfr_provided}" < "%{_mpfr_minvers}"
     140%define mpfr_required           2.3.2
     141%endif
     142
     143%if "%{gcc_version}" >= "4.5.0"
     144%define mpc_required            0.8
     145%if %{with lto}
     146%define libelf_required         0.8.12
     147%endif
     148%endif
     149
     150%if %{defined mpc_required}
     151%if "%{mpc_provided}" >= "%{mpc_required}"
     152%{?fedora:BuildRequires: libmpc-devel >= %{mpc_required}}
     153%{?suse:BuildRequires: mpc-devel >= %{mpc_required}}
     154%if "%{_build}" != "%{_host}"
     155BuildRequires:  %{_host_rpmprefix}mpc-devel >= %{mpc_required}
     156%endif
     157%else
     158%define _build_mpc 1
     159%endif
     160%endif
     161
     162%if %{defined gmp_required}
     163%if "%{gmp_provided}" >= "%{gmp_required}"
     164BuildRequires: gmp-devel >= %{gmp_required}
     165%if "%{_build}" != "%{_host}"
     166BuildRequires:  %{_host_rpmprefix}gmp-devel >= %{gmp_required}
     167%endif
     168%else
     169%define _build_gmp 1
     170%endif
     171%endif
     172
     173%if %{defined libelf_required}
     174%if "%{libelf_provided}" >= "%{libelf_required}"
     175BuildRequires: libelf-devel >= %{libelf_required}
     176%if "%{_build}" != "%{_host}"
     177BuildRequires:  %{_host_rpmprefix}libelf-devel >= %{libelf_required}
     178%endif
     179%else
     180%define _build_libelf 1
     181%endif
     182%endif
     183
     184
     185%if %{defined cloog_required}
     186%{?fc11:BuildRequires: cloog-ppl-devel >= %cloog_required}
     187%{?fc12:BuildRequires: cloog-ppl-devel >= %cloog_required}
     188%{?fc13:BuildRequires: cloog-ppl-devel >= %cloog_required}
     189%{?suse11_2:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
     190%{?suse11_1:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
     191%endif
     192
     193
     194%if %{defined mpfr_required}
     195%if "%{mpfr_provided}" >= "%{mpfr_required}"
     196BuildRequires: mpfr-devel >= %{mpfr_required}
     197%if "%{_build}" != "%{_host}"
     198BuildRequires:  %{_host_rpmprefix}mpfr-devel >= %{mpfr_required}
     199%endif
     200%else
    108201%define _build_mpfr 1
    109 %else
    110 %if "%{_build}" != "%{_host}"
    111 BuildRequires:  %{_host_rpmprefix}mpfr-devel >= %{_mpfr_minvers}
    112 %else
    113 BuildRequires: mpfr-devel >= %{_mpfr_minvers}
    114 %endif
    115 %endif
    116 %else
    117 %define _build_mpfr 1
    118 %endif
    119 
     202%endif
    120203%endif
    121204
     
    137220Requires:       i586-pc-freebsd7.2-gcc-libgcc = %{gcc_rpmvers}-%{release}
    138221
    139 
    140 %define _gcclibdir %{_prefix}/lib
     222%if "%{gcc_version}" >= "4.5.0"
     223BuildRequires:  zlib-devel
     224%if "%{_build}" != "%{_host}"
     225BuildRequires:  %{_host_rpmprefix}zlib-devel
     226%endif
     227%else
     228%endif
     229
     230%global _gcclibdir %{_prefix}/lib
    141231
    142232Source0:        ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2
     
    152242%{?_without_sources:NoSource:   5}
    153243
    154 %if "%{gcc_version}" >= "4.3.0"
     244%if 0%{?_build_mpfr}
    155245Source60:    http://www.mpfr.org/mpfr-current/mpfr-%{mpfr_version}.tar.bz2
     246%endif
     247
     248%if 0%{?_build_mpc}
     249Source61:    http://www.multiprecision.org/mpc/download/mpc-%{mpc_version}.tar.gz
     250%endif
     251
     252%if 0%{?_build_gmp}
     253Source62:    ftp://ftp.gnu.org/gnu/gmp/gmp-%{gmp_version}.tar.bz2
     254%endif
     255
     256%if 0%{?_build_libelf}
     257Source63:    http://www.mr511.de/software/libelf-%{libelf_version}.tar.gz
    156258%endif
    157259
     
    163265
    164266%setup -q -T -D -n %{name}-%{version} -a0
    165 %{?PATCH0:%patch0 -p0}
     267cd gcc-%{gcc_pkgvers}
     268%{?PATCH0:%patch0 -p1}
     269cd ..
    166270
    167271%setup -q -T -D -n %{name}-%{version} -a1
    168 %{?PATCH1:%patch1 -p0}
     272cd gcc-%{gcc_pkgvers}
     273%{?PATCH1:%patch1 -p1}
     274cd ..
    169275
    170276%setup -q -T -D -n %{name}-%{version} -a2
     
    182288  # Build mpfr one-tree style
    183289  ln -s ../mpfr-%{mpfr_version} gcc-%{gcc_pkgvers}/mpfr
     290%endif
     291
     292%if 0%{?_build_mpc}
     293%setup -q -T -D -n %{name}-%{version} -a61
     294%{?PATCH61:%patch61 -p1}
     295  # Build mpc one-tree style
     296  ln -s ../mpc-%{mpc_version} gcc-%{gcc_pkgvers}/mpc
     297%endif
     298
     299%if 0%{?_build_gmp}
     300%setup -q -T -D -n %{name}-%{version} -a62
     301%{?PATCH62:%patch62 -p1}
     302  # Build gmp one-tree style
     303  ln -s ../gmp-%{gmp_version} gcc-%{gcc_pkgvers}/gmp
     304%endif
     305
     306%if 0%{?_build_libelf}
     307%setup -q -T -D -n %{name}-%{version} -a63
     308%{?PATCH63:%patch63 -p1}
     309  # Build libelf one-tree style
     310  ln -s ../libelf-%{libelf_version} gcc-%{gcc_pkgvers}/libelf
    184311%endif
    185312
     
    225352    --enable-threads \
    226353    --with-sysroot=%{_exec_prefix}/i586-pc-freebsd7.2/sys-root \
     354    %{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
     355    %{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
    227356    --enable-languages="$languages" $optargs
    228357
     
    286415    rmdir ${RPM_BUILD_ROOT}%{_prefix}/i586-pc-freebsd7.2/include/bits
    287416  fi
     417
     418  # gcc >= 4.5.0: installs weird libstdc++ python bindings.
     419%if ! %{with pygdb}
     420  if test -d ${RPM_BUILD_ROOT}%{_datadir}/gcc-%{gcc_version}/python; then
     421    rm -rf ${RPM_BUILD_ROOT}%{_datadir}/gcc-%{gcc_version}/python/libstdcxx
     422  fi
     423%endif
    288424
    289425  # Collect multilib subdirectories
     
    332468    *jvgenmain) ;;
    333469    */libgfortran*.*) echo "$i" >> build/files.gfortran ;;
     470    %{!?with_pygdb:*/libstdc++*gdb.py*) rm ${RPM_BUILD_ROOT}/$i ;;} # ignore for now
     471    %{?with_pygdb:*/libstdc++*gdb.py*) >> build/files.g++ ;;}
    334472    */libstdc++.*) echo "$i" >> build/files.g++ ;;
    335473    */libsupc++.*) echo "$i" >> build/files.g++ ;;
     
    462600%{_libexecdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}/cc1%{_exeext}
    463601%{_libexecdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}/collect2%{_exeext}
    464 
     602%if "%{gcc_version}" >= "4.5.0"
     603%{?with_lto:%{_libexecdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}/lto%{_exeext}}
     604%{_libexecdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}/lto-wrapper%{_exeext}
     605%endif
    465606
    466607%files -n i586-pc-freebsd7.2-gcc-libgcc -f build/files.gcc
     
    472613
    473614%if "%{gcc_version}" > "4.0.3"
    474 %if "i586-pc-freebsd7.2" != "bfin-rtems4.10"
    475 %if "i586-pc-freebsd7.2" != "avr-rtems4.10"
    476615%dir %{_gcclibdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}/include/ssp
    477 %endif
    478 %endif
    479616%endif
    480617
  • contrib/crossrpms/freebsd7.2/i586/i586-pc-freebsd7.2-libs.spec

    r9e95e54 r062927e  
    3838
    3939Name:           i586-pc-freebsd7.2
    40 Release:        0.20090827.1%{?dist}
     40Release:        0.20091130.1%{?dist}
    4141License:        FreeBSD
    4242Group:          Development/Tools
Note: See TracChangeset for help on using the changeset viewer.