Fixed gcc build issue
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 27 Sep 2010 21:02:14 +0000 (14:02 -0700)
committerKevin Klues <klueska@cs.berkeley.edu>
Thu, 3 Nov 2011 00:35:54 +0000 (17:35 -0700)
Some systems are pickier than others about ghetto usages of patch.

tools/compilers/gcc-glibc/Makefile

index 2eaf455..a3d876e 100644 (file)
@@ -128,7 +128,8 @@ binutils-$(BINUTILS_VERSION):
 gcc-$(GCC_VERSION):
        rm -rf gcc-$(GCC_VERSION)
        tar -zxf gcc-$(GCC_VERSION).tar.gz
-       patch -p0 < gcc-$(GCC_VERSION)-ros.patch
+       cd gcc-$(GCC_VERSION); \
+       patch -p1 < ../gcc-$(GCC_VERSION)-ros.patch
        
        cd gcc-$(GCC_VERSION); \
        tar -zxf ../mpfr-2.3.2.tar.gz; \