SPECS: crossmingw64-gcc.spec - jump to 4.4 snapshot (it contains fixes that...

pluto pluto at pld-linux.org
Sat Jan 24 09:19:28 CET 2009


Author: pluto                        Date: Sat Jan 24 08:19:28 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- jump to 4.4 snapshot (it contains fixes that won't be backported to 4.3).
- build shared libgcc_s_1.dll after bootstrapping.

---- Files affected:
SPECS:
   crossmingw64-gcc.spec (1.10 -> 1.11) 

---- Diffs:

================================================================
Index: SPECS/crossmingw64-gcc.spec
diff -u SPECS/crossmingw64-gcc.spec:1.10 SPECS/crossmingw64-gcc.spec:1.11
--- SPECS/crossmingw64-gcc.spec:1.10	Mon Sep 22 16:11:40 2008
+++ SPECS/crossmingw64-gcc.spec	Sat Jan 24 09:19:22 2009
@@ -1,7 +1,7 @@
 # $Revision$, $Date$
 #
 # Conditional build:
-%bcond_with	bootstrap	# bootstrap build (only C compiler)
+%bcond_with	bootstrap	# bootstrap build (only C compiler with static runtime)
 #
 Summary:	Cross Mingw64 GNU binary utility development utilities - gcc
 Summary(es.UTF-8):	Utilitarios para desarrollo de binarios de la GNU - Mingw64 gcc
@@ -10,23 +10,25 @@
 Summary(pt_BR.UTF-8):	Utilitários para desenvolvimento de binários da GNU - Mingw64 gcc
 Summary(tr.UTF-8):	GNU geliştirme araçları - Mingw64 gcc
 Name:		crossmingw64-gcc
-Version:	4.3.2
-Release:	1
+%define		_major_ver	4.4
+%define		_minor_ver	0
+Version:	%{_major_ver}.%{_minor_ver}
+%define		_snap	20090123
+Release:	0.%{_snap}.1
 Epoch:		1
 License:	GPL v3+
 Group:		Development/Languages
-Source0:	ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{version}/gcc-%{version}.tar.bz2
-# Source0-md5:	5dfac5da961ecd5f227c3175859a486d
-Source1:	http://dl.sourceforge.net/mingw-w64/mingw-w64-snapshot-20080917.tar.bz2
-# Source1-md5:	07ec77f1d570df2fbb3a48e9de24fb9e
+#Source0:	ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{version}/gcc-%{version}.tar.bz2
+Source0:	ftp://gcc.gnu.org/pub/gcc/snapshots/LATEST-%{_major_ver}/gcc-%{_major_ver}-%{_snap}.tar.bz2
+Source1:	http://dl.sourceforge.net/mingw-w64/mingw-w64-snapshot-20081115.tar.bz2
+# Source1-md5:	b472282419e6aea64e14763e30d5bb63
+Patch100:	gcc-branch.diff.bz2
 Patch0:		%{name}-no_include64.patch
-Patch1:		%{name}-no_red_zone.patch
-Patch2:		%{name}-pr25672.patch
-Patch3:		%{name}-msvcrt-fmt.patch
 BuildRequires:	autoconf
 BuildRequires:	automake
 BuildRequires:	bison
 BuildRequires:	crossmingw64-binutils
+%{!?with_bootstrap:BuildRequires:	crossmingw64-gcc}
 BuildRequires:	flex
 BuildRequires:	mpfr-devel
 BuildRequires:	texinfo >= 4.2
@@ -63,11 +65,10 @@
 This package contains cross targeted g++ and (static) libstdc++.
 
 %prep
-%setup -q -n gcc-%{version} -a 1
+#setup -q -n gcc-%{version} -a 1
+%setup -q -n gcc-%{_major_ver}-%{_snap} -a 1
+#patch100 -p0
 %patch0 -p1
-%patch1 -p1
-%patch2 -p1
-%patch3 -p1
 mkdir -p winsup/mingw
 cp -ar trunk/mingw-w64-headers/include winsup/mingw
 
@@ -87,14 +88,17 @@
 	--libdir=%{_libdir} \
 	--libexecdir=%{_libexecdir} \
 	--includedir=%{arch}/include \
+	--with-gnu-as \
+	--with-gnu-ld \
 	--with-sysroot=%{arch} \
-	--with-build-sysroot=$build_sysroot \
-	--disable-shared \
+	%{?with_bootstrap:--with-build-sysroot=$build_sysroot} \
+	--%{?with_bootstrap:dis}%{!?with_bootstrap:en}able-shared \
 	--enable-threads=win32 \
 	--disable-sjlj-exceptions \
 	--enable-languages="c%{!?with_bootstrap:,c++}" \
 	--enable-c99 \
 	--enable-long-long \
+	--enable-decimal-float=yes \
 	--enable-cmath \
 	--disable-nls \
 	--with-gnu-as \
@@ -122,14 +126,14 @@
 EOF
 chmod 755 cross-gcc
 
-export CC=`pwd`/cross-gcc
+export CC=%{?with_bootstrap:`pwd`/cross-gcc}%{!?with_bootstrap:%{_bindir}/%{target}-gcc}
 
 cd trunk/mingw-w64-crt
 
 ./configure \
 	--host=%{target} \
 	--prefix=%{_prefix} \
-	--with-sysroot=$build_sysroot \
+	--with-sysroot=%{?with_bootstrap:$build_sysroot}%{!?with_bootstrap:%{arch}}
 
 %{__make}
 
@@ -183,10 +187,13 @@
 %dir %{gcclib}
 %dir %{gcclib}/include
 %{gcclib}/include/ammintrin.h
+%{gcclib}/include/avxintrin.h
 %{gcclib}/include/bmmintrin.h
 %{gcclib}/include/cpuid.h
+%{gcclib}/include/cross-stdarg.h
 %{gcclib}/include/emmintrin.h
 %{gcclib}/include/float.h
+%{gcclib}/include/immintrin.h
 %{gcclib}/include/iso646.h
 %{gcclib}/include/limits.h
 %{gcclib}/include/mm3dnow.h
@@ -205,10 +212,17 @@
 %{gcclib}/include/tmmintrin.h
 %{gcclib}/include/unwind.h
 %{gcclib}/include/varargs.h
+%{gcclib}/include/wmmintrin.h
+%{gcclib}/include/x86intrin.h
 %{gcclib}/include/xmmintrin.h
 %attr(755,root,root) %{gcclib}/cc1
 %attr(755,root,root) %{gcclib}/collect2
+%{gcclib}/*.o
 %{gcclib}/libgcc.a
+%if %{without bootstrap}
+%{_bindir}/libgcc_s_1.dll
+%{gcclib}/libgcc_eh.a
+%endif
 %{gcclib}/libgcov.a
 %{gcclib}/specs*
 %{_mandir}/man1/%{target}-cpp.1*
@@ -244,6 +258,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.11  2009/01/24 08:19:22  pluto
+- jump to 4.4 snapshot (it contains fixes that won't be backported to 4.3).
+- build shared libgcc_s_1.dll after bootstrapping.
+
 Revision 1.10  2008/09/22 14:11:40  pluto
 - updated to 4.3.2, backported msvcrt-fmt patch from 4.4, updated crt.
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/crossmingw64-gcc.spec?r1=1.10&r2=1.11&f=u



More information about the pld-cvs-commit mailing list