rpms/arm-gp2x-linux-gcc/F-7 gcc-4.1.2-gcc_eh.patch, NONE, 1.1 .cvsignore, 1.2, 1.3 arm-gp2x-linux-gcc.spec, 1.1, 1.2 sources, 1.2, 1.3

Hans de Goede (jwrdegoede) fedora-extras-commits at redhat.com
Sun Aug 5 19:47:39 UTC 2007


Author: jwrdegoede

Update of /cvs/extras/rpms/arm-gp2x-linux-gcc/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15240

Modified Files:
	.cvsignore arm-gp2x-linux-gcc.spec sources 
Added Files:
	gcc-4.1.2-gcc_eh.patch 
Log Message:
* Fri Aug 3 2007 Kevin Kofler <Kevin at tigcc.ticalc.org> 4.1.2-6
- Disable bootstrap
- Add "GP2X" to VERSUFFIX
- Link C++ against -lgcc_eh to fix undefined references
- Specify GPL version in License tag


gcc-4.1.2-gcc_eh.patch:

--- NEW FILE gcc-4.1.2-gcc_eh.patch ---
diff -ur gcc-4.1.2/gcc/cp/g++spec.c gcc-4.1.2-gcc_eh/gcc/cp/g++spec.c
--- gcc-4.1.2/gcc/cp/g++spec.c	2005-06-25 02:59:41.000000000 +0200
+++ gcc-4.1.2-gcc_eh/gcc/cp/g++spec.c	2007-08-03 14:46:03.000000000 +0200
@@ -251,7 +251,7 @@
 #endif
 
   /* Make sure to have room for the trailing NULL argument.  */
-  num_args = argc + added + need_math + shared_libgcc + (library > 0) + 1;
+  num_args = argc + added + need_math + shared_libgcc + 2 * (library > 0) + 1;
   arglist = xmalloc (num_args * sizeof (char *));
 
   i = 0;
@@ -311,7 +311,10 @@
     {
       arglist[j] = saw_profile_flag ? LIBSTDCXX_PROFILE : LIBSTDCXX;
       if (arglist[j][0] != '-' || arglist[j][1] == 'l')
-	added_libraries++;
+      {
+	arglist[++j] = "-lgcc_eh";
+	added_libraries += 2;
+      }
       j++;
     }
   if (saw_math)


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/arm-gp2x-linux-gcc/F-7/.cvsignore,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- .cvsignore	28 Jul 2007 21:13:42 -0000	1.2
+++ .cvsignore	5 Aug 2007 19:47:06 -0000	1.3
@@ -1,3 +1,2 @@
 gcc-core-4.1.2.tar.bz2
-glibc-2.3.6.tar.bz2
-glibc-linuxthreads-2.3.6.tar.bz2
+gcc-g++-4.1.2.tar.bz2


Index: arm-gp2x-linux-gcc.spec
===================================================================
RCS file: /cvs/extras/rpms/arm-gp2x-linux-gcc/F-7/arm-gp2x-linux-gcc.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- arm-gp2x-linux-gcc.spec	28 Jul 2007 21:13:42 -0000	1.1
+++ arm-gp2x-linux-gcc.spec	5 Aug 2007 19:47:06 -0000	1.2
@@ -1,13 +1,13 @@
 %define target arm-gp2x-linux
 %define glibcversion 2.3.6
-%define bootstrap 1
+%define bootstrap 0
 
 Name:           %{target}-gcc
 Version:        4.1.2
-Release:        5%{?dist}
+Release:        6%{?dist}
 Summary:        Cross Compiling GNU GCC targeted at %{target}
 Group:          Development/Languages
-License:        GPL
+License:        GPLv2+
 URL:            http://gcc.gnu.org/
 Source0:        ftp://ftp.gnu.org/gnu/gcc/gcc-%{version}/gcc-core-%{version}.tar.bz2
 %if !%{bootstrap}
@@ -19,6 +19,7 @@
 Source3:        README.fedora
 Patch0:         arm-linux-soft-float.patch
 Patch1:         gcc40-cross-build-fixes.patch
+Patch2:         gcc-4.1.2-gcc_eh.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n)
 BuildRequires:  %{target}-binutils zlib-devel
 Requires:       %{target}-binutils
@@ -56,7 +57,10 @@
 pushd gcc-%{version}
 %patch0 -p1
 %patch1 -p1
-sed -i 's/VERSUFFIX ""/VERSUFFIX " (Fedora %{version}-%{release})"/' \
+%if !%{bootstrap}
+%patch2 -p1
+%endif
+sed -i 's/VERSUFFIX ""/VERSUFFIX " (Fedora GP2X %{version}-%{release})"/' \
   gcc/version.c
 contrib/gcc_update --touch
 popd
@@ -186,6 +190,12 @@
 
 
 %changelog
+* Fri Aug 3 2007 Kevin Kofler <Kevin at tigcc.ticalc.org> 4.1.2-6
+- Disable bootstrap
+- Add "GP2X" to VERSUFFIX
+- Link C++ against -lgcc_eh to fix undefined references
+- Specify GPL version in License tag
+
 * Thu May 31 2007 Hans de Goede <j.w.r.degoede at hhs.nl> 4.1.2-5
 - Merge in avr-gcc cross compile changes
 


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/arm-gp2x-linux-gcc/F-7/sources,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- sources	28 Jul 2007 21:13:42 -0000	1.2
+++ sources	5 Aug 2007 19:47:06 -0000	1.3
@@ -1,3 +1,2 @@
 2af3fb599635219171c6ae1f3034888a  gcc-core-4.1.2.tar.bz2
-bfdce99f82d6dbcb64b7f11c05d6bc96  glibc-2.3.6.tar.bz2
-d4eeda37472666a15cc1f407e9c987a9  glibc-linuxthreads-2.3.6.tar.bz2
+75c6d5fa3415d614314caf0f509e8933  gcc-g++-4.1.2.tar.bz2




More information about the fedora-extras-commits mailing list