SPECS: crossppc-gcc.spec - up to 4.3.2, sync patches and partially sync bui...
sparky
sparky at pld-linux.org
Mon Sep 22 17:16:13 CEST 2008
Author: sparky Date: Mon Sep 22 15:16:13 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- up to 4.3.2, sync patches and partially sync build with gcc.spec at HEAD
- FIXME: libgcc.a won't build
---- Files affected:
SPECS:
crossppc-gcc.spec (1.35 -> 1.36)
---- Diffs:
================================================================
Index: SPECS/crossppc-gcc.spec
diff -u SPECS/crossppc-gcc.spec:1.35 SPECS/crossppc-gcc.spec:1.36
--- SPECS/crossppc-gcc.spec:1.35 Mon Jun 4 18:31:23 2007
+++ SPECS/crossppc-gcc.spec Mon Sep 22 17:16:07 2008
@@ -6,14 +6,28 @@
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.0.2
-Release: 2
+Version: 4.3.2
+Release: 0.1
Epoch: 1
License: GPL
Group: Development/Languages
Source0: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{version}/gcc-%{version}.tar.bz2
-# Source0-md5: a659b8388cac9db2b13e056e574ceeb0
-Patch0: gcc-pr25715.patch
+# Source0-md5: 5dfac5da961ecd5f227c3175859a486d
+Source1: gcc-optimize-la.pl
+Patch100: gcc-branch.diff.bz2
+Patch101: gcc-ix86-branch.diff.bz2
+Patch0: gcc-info.patch
+Patch1: gcc-nolocalefiles.patch
+Patch2: gcc-nodebug.patch
+Patch3: gcc-ada-link.patch
+Patch4: gcc-sparc64-ada_fix.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
+
URL: http://gcc.gnu.org/
BuildRequires: autoconf
BuildRequires: automake
@@ -21,6 +35,9 @@
BuildRequires: crossppc-binutils
BuildRequires: fileutils >= 4.0.41
BuildRequires: flex
+BuildRequires: gmp-devel >= 4.1
+BuildRequires: mpfr-devel >= 2.3.0
+BuildRequires: rpmbuild(macros) >= 1.211
BuildRequires: texinfo >= 4.1
Requires: crossppc-binutils
Requires: gcc-dirs
@@ -32,6 +49,14 @@
%define gccarch %{_libdir}/gcc/%{target}
%define gcclib %{gccarch}/%{version}
+# 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}}}
+%endif
+
+
%define _noautostrip .*/libgc.*\\.a
%description
@@ -60,37 +85,72 @@
%prep
%setup -q -n gcc-%{version}
+%patch100 -p0
+%patch101 -p0
%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
+
+%patch6 -p1
+%patch7 -p0
+%if %{with qt}
+%patch8 -p1
+%endif
+%patch9 -p1
+%patch10 -p1
+
+mv ChangeLog ChangeLog.general
+
+# override snapshot version.
+echo %{version} > gcc/BASE-VER
+echo "release" > gcc/DEV-PHASE
%build
+cd gcc
+%{__autoconf}
+cd ..
cp -f /usr/share/automake/config.* .
-rm -rf obj-%{target}
-install -d obj-%{target}
-cd obj-%{target}
+rm -rf builddir && install -d builddir && cd builddir
+
+CC="%{__cc}" \
CFLAGS="%{rpmcflags}" \
-CXXFLAGS="%{rpmcflags}" \
+CXXFLAGS="%{rpmcxxflags}" \
+CFLAGS_FOR_TARGET="%{target_cflags}" \
TEXCONFIG=false \
../configure \
--prefix=%{_prefix} \
+ --with-local-prefix=%{_prefix}/local \
+ --libdir=%{_libdir} \
+ --libexecdir=%{_libdir} \
--infodir=%{_infodir} \
--mandir=%{_mandir} \
--bindir=%{_bindir} \
- --libdir=%{_libdir} \
- --libexecdir=%{_libdir} \
--disable-shared \
--disable-threads \
--without-headers \
--enable-languages="c,c++" \
+ --disable-libgomp \
--enable-c99 \
--enable-long-long \
+ --disable-multilib \
--disable-nls \
+ --disable-werror \
--with-gnu-as \
--with-gnu-ld \
--with-demangler-in-ld \
--with-system-zlib \
- --disable-multilib \
--without-x \
+ --with-long-double-128 \
+ --enable-secureplt \
+ --with-gxx-include-dir=%{_includedir}/c++/%{version} \
+ --disable-libstdcxx-pch \
+ --enable-__cxa_atexit \
+ --enable-libstdcxx-allocator=new \
+ --with-pkgversion="PLD-Linux" \
+ --with-bugurl="http://bugs.pld-linux.org" \
--target=%{target} \
--host=%{_target_platform} \
--build=%{_target_platform}
@@ -100,49 +160,46 @@
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} -C obj-%{target} install-gcc \
+%{__make} -C builddir install-gcc \
DESTDIR=$RPM_BUILD_ROOT
-install obj-%{target}/gcc/specs $RPM_BUILD_ROOT%{gcclib}
+install builddir/gcc/specs $RPM_BUILD_ROOT%{gcclib}
# don't want this here
rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
-# include/ contains install-tools/include/* and headers that were fixed up
-# by fixincludes, we don't want former
gccdir=$RPM_BUILD_ROOT%{gcclib}
-mkdir $gccdir/tmp
-# we have to save these however
-mv -f $gccdir/include/syslimits.h $gccdir/tmp
-rm -rf $gccdir/include
-mv -f $gccdir/tmp $gccdir/include
-cp -f $gccdir/install-tools/include/*.h $gccdir/include
-# but we don't want anything more from install-tools
-rm -rf $gccdir/install-tools
-
-%if 0%{!?debug:1}
-%{target}-strip -g -R.note -R.comment $RPM_BUILD_ROOT%{gcclib}/libgcc.a
-%{target}-strip -g -R.note -R.comment $RPM_BUILD_ROOT%{gcclib}/libgcov.a
-%endif
+cp $gccdir/install-tools/include/*.h $gccdir/include
+cp $gccdir/include-fixed/syslimits.h $gccdir/include
+rm -rf $gccdir/install-tools
+rm -rf $gccdir/include-fixed
+
+#%if 0%{!?debug:1}
+#%{target}-strip -g -R.note -R.comment $RPM_BUILD_ROOT%{gcclib}/libgcc.a
+#%{target}-strip -g -R.note -R.comment $RPM_BUILD_ROOT%{gcclib}/libgcov.a
+#%endif
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/%{target}-gcc
%attr(755,root,root) %{_bindir}/%{target}-cpp
+%attr(755,root,root) %{_bindir}/%{target}-gcc
+%attr(755,root,root) %{_bindir}/%{target}-gccbug
+%attr(755,root,root) %{_bindir}/%{target}-gcov
%dir %{gccarch}
%dir %{gcclib}
%attr(755,root,root) %{gcclib}/cc1
%attr(755,root,root) %{gcclib}/collect2
-%{gcclib}/*crt*.o
-%{gcclib}/libgcc.a
-%{gcclib}/specs*
+#%{gcclib}/*crt*.o
+#%{gcclib}/libgcc.a
+%{gcclib}/specs
%dir %{gcclib}/include
%{gcclib}/include/*.h
%{_mandir}/man1/%{target}-cpp.1*
%{_mandir}/man1/%{target}-gcc.1*
+%{_mandir}/man1/%{target}-gcov.1*
%files c++
%defattr(644,root,root,755)
@@ -156,8 +213,13 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
-Revision 1.35 2007/06/04 16:31:23 sparky
-- aieeeee, reverted accidental commit
+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
+
+Revision 1.33.2.1 2007/06/04 16:29:54 sparky
+- updated to 4.1.2
+- synced all patches and changes in source with gcc.spec at GCC_4_1
Revision 1.33 2007/02/12 21:23:51 glen
- tabs in preamble
@@ -220,7 +282,7 @@
- syncing specs, cleanups.
Revision 1.14 2004/11/17 22:01:31 pluto
-- %%build/%%files finished.
+- %build/%files finished.
Revision 1.13 2004/11/17 21:33:39 pluto
- newlib headers are used only on win32 hosted crosscompilers.
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/crossppc-gcc.spec?r1=1.35&r2=1.36&f=u
More information about the pld-cvs-commit
mailing list