X-Git-Url: http://git.code-monkey.de/?p=crux-arm-cross-compiler.git;a=blobdiff_plain;f=arm-gcc%2FPkgfile;fp=arm-gcc%2FPkgfile;h=1cea3ec3c554bac7f57758173dcf6f9eb65fca99;hp=0000000000000000000000000000000000000000;hb=83b9bcaef39bce3b492ec0bce5ff32a9843f02c5;hpb=e48baed2ca40ae3630fb848339d1f6e9434c899d diff --git a/arm-gcc/Pkgfile b/arm-gcc/Pkgfile new file mode 100644 index 0000000..1cea3ec --- /dev/null +++ b/arm-gcc/Pkgfile @@ -0,0 +1,68 @@ +# Description: ARM cross compiler +# URL: http://gcc.gnu.org +# Depends on: libgmp libmpfr arm-binutils arm-glibc + +name=arm-gcc +version=4.4.4 +release=1 +source=(ftp://sources.redhat.com/pub/gcc/releases/gcc-$version/gcc-{core,g++}-$version.tar.bz2) + +build() { + local TARGET=armv5tel-softfloat-linux-gnueabi + + sed -i 's|REVISION|REVISION " (CRUX)"|' gcc-$version/gcc/version.c + + mkdir build + cd build + + unset CFLAGS + unset CXXFLAGS + unset CC + + AR=ar \ + ../gcc-$version/configure \ + --prefix=/usr \ + --build=i686-cross-linux-gnu \ + --host=i686-cross-linux-gnu \ + --target=$TARGET \ + --libexecdir=/usr/lib \ + --enable-languages=c,c++ \ + --enable-threads=posix \ + --enable-__cxa_atexit \ + --disable-nls \ + --disable-multilib \ + --with-headers=/usr/$TARGET/include \ + --without-fp + + make + make -j1 DESTDIR=$PKG install + + rm $PKG/usr/lib/libiberty.a + + rm $PKG/usr/man/man7/{fsf-funding,gfdl,gpl}.7 + rmdir $PKG/usr/man/man7 + + rmdir $PKG/usr/share + rm -rf $PKG/usr/info + + $TARGET-strip --strip-debug \ + $PKG/usr/$TARGET/lib/libgomp.a \ + $PKG/usr/$TARGET/lib/libiberty.a \ + $PKG/usr/$TARGET/lib/libmudflap.a \ + $PKG/usr/$TARGET/lib/libmudflapth.a \ + $PKG/usr/$TARGET/lib/libssp.a \ + $PKG/usr/$TARGET/lib/libssp_nonshared.a \ + $PKG/usr/$TARGET/lib/libstdc++.a \ + $PKG/usr/$TARGET/lib/libsupc++.a \ + $PKG/usr/lib/gcc/$TARGET/$version/libgcc.a \ + $PKG/usr/lib/gcc/$TARGET/$version/libgcc_eh.a \ + $PKG/usr/lib/gcc/$TARGET/$version/libgcov.a + + $TARGET-strip --strip-unneeded \ + $PKG/usr/$TARGET/lib/libgcc_s.so.1 \ + $PKG/usr/$TARGET/lib/libgomp.so.1.0.0 \ + $PKG/usr/$TARGET/lib/libmudflap.so.0.0.0 \ + $PKG/usr/$TARGET/lib/libmudflapth.so.0.0.0 \ + $PKG/usr/$TARGET/lib/libssp.so.0.0.0 \ + $PKG/usr/$TARGET/lib/libstdc++.so.6.0.13 +}