# HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 1362887422 18000 # Node ID 2aaa8977b7666b7cd6443ed7b66ed9e1f09aceb4 # Parent 0146243c79156510e15260adec9d597512bdd184 Patch gcc 4.7.2 so that it builds diff -r 0146243c7915 -r 2aaa8977b766 gub/specs/cross/gcc.py --- a/gub/specs/cross/gcc.py Fri Mar 08 10:03:48 2013 -0500 +++ b/gub/specs/cross/gcc.py Sat Mar 09 22:50:22 2013 -0500 @@ -9,6 +9,7 @@ class Gcc (cross.AutoBuild): source = 'http://ftp.gnu.org/pub/gnu/gcc/gcc-4.7.2/gcc-4.7.2.tar.gz' + patches = ['gcc-4.7.2-fix-libstdc++-debug-build.patch'] dependencies = ['cross/binutils'] configure_flags = (cross.AutoBuild.configure_flags + '%(enable_languages)s' @@ -77,7 +78,6 @@ Gcc__linux = Gcc__from__source class Gcc__mingw (Gcc): - source = 'http://ftp.gnu.org/pub/gnu/gcc/gcc-4.7.2/gcc-4.7.2.tar.gz' dependencies = (Gcc.dependencies + ['mingw-runtime', 'w32api'] + ['tools::libtool']) diff -r 0146243c7915 -r 2aaa8977b766 patches/gcc-4.7.2-fix-libstdc++-debug-build.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/patches/gcc-4.7.2-fix-libstdc++-debug-build.patch Sat Mar 09 22:50:22 2013 -0500 @@ -0,0 +1,11 @@ +--- gcc-4.7.2/libstdc++-v3/src/Makefile.in- 2013-03-09 21:51:54.035184011 -0500 ++++ gcc-4.7.2/libstdc++-v3/src/Makefile.in 2013-03-09 21:54:07.246587046 -0500 +@@ -914,7 +914,7 @@ + mv Makefile Makefile.tmp; \ + sed -e 's,all-local: all-once,all-local:,' \ + -e 's,install-data-local: install-data-once,install-data-local:,' \ +- -e '/vpath/!s,src/c,src/debug/c,' \ ++ -e 's,\$(top_builddir)/src/c++,\$(top_builddir)/src/debug/c++,' \ + < Makefile.tmp > Makefile ; \ + $(MAKE) CXXFLAGS='$(DEBUG_FLAGS)' \ + toolexeclibdir=$(glibcxx_toolexeclibdir)/debug all) ;