SPECS: crossppc-gcc.spec - up to 4.4.0, first attempt at syncing with gcc.spec
sparky
sparky at pld-linux.org
Wed Apr 22 13:51:24 CEST 2009
Author: sparky Date: Wed Apr 22 11:51:24 2009 GMT
Module: SPECS Tag: HEAD
---- Log message:
- up to 4.4.0, first attempt at syncing with gcc.spec
---- Files affected:
SPECS:
crossppc-gcc.spec (1.36 -> 1.37)
---- Diffs:
================================================================
Index: SPECS/crossppc-gcc.spec
diff -u SPECS/crossppc-gcc.spec:1.36 SPECS/crossppc-gcc.spec:1.37
--- SPECS/crossppc-gcc.spec:1.36 Mon Sep 22 17:16:07 2008
+++ SPECS/crossppc-gcc.spec Wed Apr 22 13:51:18 2009
@@ -1,4 +1,8 @@
# $Revision$, $Date$
+
+%define major_ver 4.4
+%define minor_ver 0
+
Summary: Cross PPC GNU binary utility development utilities - gcc
Summary(es.UTF-8): Utilitarios para desarrollo de binarios de la GNU - PPC gcc
Summary(fr.UTF-8): Utilitaires de développement binaire de GNU - PPC gcc
@@ -6,28 +10,30 @@
Summary(pt_BR.UTF-8): Utilitários para desenvolvimento de binários da GNU - PPC gcc
Summary(tr.UTF-8): GNU geliştirme araçları - PPC gcc
Name: crossppc-gcc
-Version: 4.3.2
+Version: %{major_ver}.%{minor_ver}
Release: 0.1
Epoch: 1
-License: GPL
+License: GPL v3+
Group: Development/Languages
Source0: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{version}/gcc-%{version}.tar.bz2
-# Source0-md5: 5dfac5da961ecd5f227c3175859a486d
+# Source0-md5: cf5d787bee57f38168b74d65a7c0e6fd
Source1: gcc-optimize-la.pl
-Patch100: gcc-branch.diff.bz2
-Patch101: gcc-ix86-branch.diff.bz2
+#Patch100: gcc-branch.diff
+# svn diff svn://gcc.gnu.org/svn/gcc/branches/gcc-4_3-branch@145062 svn://gcc.gnu.org/svn/gcc/branches/ix86/gcc-4_3-branch > gcc-ix86-branch.diff
+# The goal of this branch is to add support for newer ix86 processors such as AMD's Barcelona and Intel's Westmere to GCC 4.3.x.
+Patch101: gcc-ix86-branch.diff
Patch0: gcc-info.patch
Patch1: gcc-nolocalefiles.patch
Patch2: gcc-nodebug.patch
Patch3: gcc-ada-link.patch
Patch4: gcc-sparc64-ada_fix.patch
-
+Patch5: gcc-pr14912.patch
Patch6: gcc-ppc64-m32-m64-multilib-only.patch
Patch7: gcc-libjava-multilib.patch
Patch8: gcc-enable-java-awt-qt.patch
Patch9: gcc-hash-style-gnu.patch
Patch10: gcc-moresparcs.patch
-
+Patch11: gcc-build-id.patch
URL: http://gcc.gnu.org/
BuildRequires: autoconf
BuildRequires: automake
@@ -48,15 +54,18 @@
%define arch %{_prefix}/%{target}
%define gccarch %{_libdir}/gcc/%{target}
%define gcclib %{gccarch}/%{version}
+%define _slibdir /%{_lib}
+
+%define filterout -fwrapv -fno-strict-aliasing -fsigned-char
+%define filterout_ld -Wl,--as-needed
# used for crtbegin.o / crtend.o
%if 0%{?debug:1}
%define target_cflags %{debugcflags}
%else
-%define target_cflags -O2 -fno-strict-aliasing -fwrapv -fsigned-char%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_ppc: %{specflags_ppc}}}
+%define target_cflags -O2%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_ppc: %{specflags_ppc}}}
%endif
-
%define _noautostrip .*/libgc.*\\.a
%description
@@ -85,21 +94,22 @@
%prep
%setup -q -n gcc-%{version}
-%patch100 -p0
+#patch100 -p0
%patch101 -p0
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
+%patch5 -p1
%patch4 -p1
-
%patch6 -p1
%patch7 -p0
%if %{with qt}
%patch8 -p1
%endif
%patch9 -p1
-%patch10 -p1
+#patch10 -p1
+%patch11 -p0
mv ChangeLog ChangeLog.general
@@ -109,9 +119,9 @@
%build
cd gcc
-%{__autoconf}
+#{__autoconf}
cd ..
-cp -f /usr/share/automake/config.* .
+cp -f /usr/share/automake/config.sub .
rm -rf builddir && install -d builddir && cd builddir
@@ -142,6 +152,7 @@
--with-gnu-ld \
--with-demangler-in-ld \
--with-system-zlib \
+ --with-slibdir=%{_slibdir} \
--without-x \
--with-long-double-128 \
--enable-secureplt \
@@ -155,7 +166,10 @@
--host=%{_target_platform} \
--build=%{_target_platform}
-%{__make} all-gcc
+cd ..
+
+%{__make} -C builddir all-gcc \
+ LDFLAGS_FOR_TARGET="%{rpmldflags}"
%install
rm -rf $RPM_BUILD_ROOT
@@ -165,9 +179,6 @@
install builddir/gcc/specs $RPM_BUILD_ROOT%{gcclib}
-# don't want this here
-rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
-
gccdir=$RPM_BUILD_ROOT%{gcclib}
cp $gccdir/install-tools/include/*.h $gccdir/include
cp $gccdir/include-fixed/syslimits.h $gccdir/include
@@ -213,6 +224,15 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.37 2009/04/22 11:51:18 sparky
+- up to 4.4.0, first attempt at syncing with gcc.spec
+
+Revision 1.36.2.2 2009/04/19 15:25:20 sparky
+- md5
+
+Revision 1.36.2.1 2009/04/19 13:19:57 sparky
+- up to 4.3.3 (sync with gcc.spec at GCC_4_3)
+
Revision 1.36 2008/09/22 15:16:07 sparky
- up to 4.3.2, sync patches and partially sync build with gcc.spec at HEAD
- FIXME: libgcc.a won't build
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/crossppc-gcc.spec?r1=1.36&r2=1.37&f=u
More information about the pld-cvs-commit
mailing list