Changeset ac367f3 in rtems
- Timestamp:
- Apr 15, 2010, 5:24:46 PM (10 years ago)
- Branches:
- 4.10, 4.11, master
- Children:
- a87e7d88
- Parents:
- 062927e
- Location:
- contrib/crossrpms/freebsd6.4/i586
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
contrib/crossrpms/freebsd6.4/i586/Makefile.am
r062927e rac367f3 17 17 BINUTILS_OPTS += 18 18 19 GCC_VERS = 4. 4.219 GCC_VERS = 4.5.0 20 20 GCC_PKGVERS = $(GCC_VERS) 21 GCC_RPMREL = 0.20100 317.121 GCC_RPMREL = 0.20100415.1 22 22 include ../gcc.am 23 23 GCC_OPTS += --languages=cxx,fortran,objc -
contrib/crossrpms/freebsd6.4/i586/i586-pc-freebsd6.4-binutils.spec
r062927e rac367f3 50 50 BuildRequires: texinfo >= 4.2 51 51 %else 52 %if "i586-pc-freebsd6.4" == "i686-pc-cygwin"53 BuildRequires: texinfo >= 4.254 %endif55 52 %endif 56 53 BuildRequires: flex -
contrib/crossrpms/freebsd6.4/i586/i586-pc-freebsd6.4-gcc.spec
r062927e rac367f3 32 32 33 33 34 %define gcc_pkgvers 4. 4.235 %define gcc_version 4. 4.236 %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 - _ )} 37 37 38 38 … … 42 42 Group: Development/Tools 43 43 Version: %{gcc_rpmvers} 44 Release: 0.20100 317.1%{?dist}44 Release: 0.20100415.1%{?dist} 45 45 License: GPL 46 46 URL: http://gcc.gnu.org … … 51 51 BuildRequires: %{_host_rpmprefix}gcc 52 52 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 53 130 %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 66 133 %endif 67 134 68 135 %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 78 137 %endif 79 138 80 139 %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}" 155 BuildRequires: %{_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}" 164 BuildRequires: gmp-devel >= %{gmp_required} 165 %if "%{_build}" != "%{_host}" 166 BuildRequires: %{_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}" 175 BuildRequires: libelf-devel >= %{libelf_required} 176 %if "%{_build}" != "%{_host}" 177 BuildRequires: %{_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}" 196 BuildRequires: mpfr-devel >= %{mpfr_required} 197 %if "%{_build}" != "%{_host}" 198 BuildRequires: %{_host_rpmprefix}mpfr-devel >= %{mpfr_required} 199 %endif 200 %else 108 201 %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 120 203 %endif 121 204 … … 137 220 Requires: i586-pc-freebsd6.4-gcc-libgcc = %{gcc_rpmvers}-%{release} 138 221 139 140 %define _gcclibdir %{_prefix}/lib 222 %if "%{gcc_version}" >= "4.5.0" 223 BuildRequires: zlib-devel 224 %if "%{_build}" != "%{_host}" 225 BuildRequires: %{_host_rpmprefix}zlib-devel 226 %endif 227 %else 228 %endif 229 230 %global _gcclibdir %{_prefix}/lib 141 231 142 232 Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2 … … 152 242 %{?_without_sources:NoSource: 5} 153 243 154 %if "%{gcc_version}" >= "4.3.0"244 %if 0%{?_build_mpfr} 155 245 Source60: http://www.mpfr.org/mpfr-current/mpfr-%{mpfr_version}.tar.bz2 246 %endif 247 248 %if 0%{?_build_mpc} 249 Source61: http://www.multiprecision.org/mpc/download/mpc-%{mpc_version}.tar.gz 250 %endif 251 252 %if 0%{?_build_gmp} 253 Source62: ftp://ftp.gnu.org/gnu/gmp/gmp-%{gmp_version}.tar.bz2 254 %endif 255 256 %if 0%{?_build_libelf} 257 Source63: http://www.mr511.de/software/libelf-%{libelf_version}.tar.gz 156 258 %endif 157 259 … … 163 265 164 266 %setup -q -T -D -n %{name}-%{version} -a0 165 %{?PATCH0:%patch0 -p0} 267 cd gcc-%{gcc_pkgvers} 268 %{?PATCH0:%patch0 -p1} 269 cd .. 166 270 167 271 %setup -q -T -D -n %{name}-%{version} -a1 168 %{?PATCH1:%patch1 -p0} 272 cd gcc-%{gcc_pkgvers} 273 %{?PATCH1:%patch1 -p1} 274 cd .. 169 275 170 276 %setup -q -T -D -n %{name}-%{version} -a2 … … 182 288 # Build mpfr one-tree style 183 289 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 184 311 %endif 185 312 … … 225 352 --enable-threads \ 226 353 --with-sysroot=%{_exec_prefix}/i586-pc-freebsd6.4/sys-root \ 354 %{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \ 355 %{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \ 227 356 --enable-languages="$languages" $optargs 228 357 … … 286 415 rmdir ${RPM_BUILD_ROOT}%{_prefix}/i586-pc-freebsd6.4/include/bits 287 416 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 288 424 289 425 # Collect multilib subdirectories … … 332 468 *jvgenmain) ;; 333 469 */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++ ;;} 334 472 */libstdc++.*) echo "$i" >> build/files.g++ ;; 335 473 */libsupc++.*) echo "$i" >> build/files.g++ ;; … … 462 600 %{_libexecdir}/gcc/i586-pc-freebsd6.4/%{gcc_version}/cc1%{_exeext} 463 601 %{_libexecdir}/gcc/i586-pc-freebsd6.4/%{gcc_version}/collect2%{_exeext} 464 602 %if "%{gcc_version}" >= "4.5.0" 603 %{?with_lto:%{_libexecdir}/gcc/i586-pc-freebsd6.4/%{gcc_version}/lto%{_exeext}} 604 %{_libexecdir}/gcc/i586-pc-freebsd6.4/%{gcc_version}/lto-wrapper%{_exeext} 605 %endif 465 606 466 607 %files -n i586-pc-freebsd6.4-gcc-libgcc -f build/files.gcc … … 472 613 473 614 %if "%{gcc_version}" > "4.0.3" 474 %if "i586-pc-freebsd6.4" != "bfin-rtems4.10"475 %if "i586-pc-freebsd6.4" != "avr-rtems4.10"476 615 %dir %{_gcclibdir}/gcc/i586-pc-freebsd6.4/%{gcc_version}/include/ssp 477 %endif478 %endif479 616 %endif 480 617
Note: See TracChangeset
for help on using the changeset viewer.