# Depends on: zlib libmpc
name=gcc
-version=4.5.2
+version=4.6.1
release=1
source=(ftp://sources.redhat.com/pub/gcc/releases/$name-$version/$name-{core,g++}-$version.tar.bz2
- $name-nocheck-fixincludes.patch)
+ $name-$version-gnueabihf.patch)
build() {
cd $name-$version
-
- patch -p1 -i $SRC/$name-nocheck-fixincludes.patch
+ patch -p1 -i $SRC/$name-$version-gnueabihf.patch
sed -i 's|REVISION|REVISION " (CRUX)"|' $name/version.c
# apply a sed substitutio that will suppress the installation of libiberty.a
sed 's|install_to_$(INSTALL_DEST) ||' -i libiberty/Makefile.in
- # avoid hardcodeds
- sed 's|@have_mktemp_command@|yes|' -i gcc/gccbug.in
mkdir $SRC/build
cd $SRC/build
--enable-__cxa_atexit \
--enable-clocale=gnu \
--enable-shared \
+ --with-float=hard \
--disable-nls \
--with-x=no \
--with-system-zlib \
mv $PKG/usr/lib/gcc/*/$version/include-fixed/{limits.h,syslimits.h} $PKG/usr/lib/gcc/*/$version/include/
- rm $PKG/usr/lib/libstdc++.so.6.0.14-gdb.py
+ rm $PKG/usr/lib/libstdc++.so.6.0.16-gdb.py
rm -r $PKG/usr/share
rm -r $PKG/usr/lib/gcc/*/$version/{install-tools,include-fixed}