source=(ftp://gcc.gnu.org/pub/gcc/releases/$name-$version/$name-$version.tar.bz2
$name-nocheck-fixincludes.patch $name-$version-gnueabihf.patch)
source=(ftp://gcc.gnu.org/pub/gcc/releases/$name-$version/$name-$version.tar.bz2
$name-nocheck-fixincludes.patch $name-$version-gnueabihf.patch)
patch -p1 -i $SRC/$name-nocheck-fixincludes.patch
sed -i 's|REVISION|REVISION " (CRUX-ARM)"|' $name/version.c
patch -p1 -i $SRC/$name-nocheck-fixincludes.patch
sed -i 's|REVISION|REVISION " (CRUX-ARM)"|' $name/version.c
LDFLAGS="-Wl,-rpath-link,$CROSSTOOLS/$CTARGET/lib" \
../$name-$version/configure --build=$CHOST \
--host=$CTARGET \
LDFLAGS="-Wl,-rpath-link,$CROSSTOOLS/$CTARGET/lib" \
../$name-$version/configure --build=$CHOST \
--host=$CTARGET \
# prevent GCC from looking in the wrong directories for headers and libraries
sed "/^HOST_\(GMP\|PPL\|CLOOG\)\(LIBS\|INC\)/s:-[IL]/\(lib\|include\)::" -i Makefile
# prevent GCC from looking in the wrong directories for headers and libraries
sed "/^HOST_\(GMP\|PPL\|CLOOG\)\(LIBS\|INC\)/s:-[IL]/\(lib\|include\)::" -i Makefile