# HG changeset patch # User Eric Joseph-Alexandre # Date 1336170918 -7200 # Node ID a497988d5e1b09d627a2a9db9548d2d443d4dfcf # Parent 783ffd32bbf884032dfe786da8a7e799d517a9ee Add: cross-x86_64-binutils diff -r 783ffd32bbf8 -r a497988d5e1b cross-x86_64-binutils/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cross-x86_64-binutils/receipt Sat May 05 00:35:18 2012 +0200 @@ -0,0 +1,56 @@ +# SliTaz package receipt. + +PACKAGE="cross-x86_64-binutils" +VERSION="2.22" +CATEGORY="system-tools" +SHORT_DESC="Cross compilation linker targeting x86_64 platform." +MAINTAINER="erjo@slitaz.org" +SOURCE="binutils" +WEB_SITE="http://www.gnu.org/software/binutils/" +TARBALL="$SOURCE-$VERSION.tar.bz2" +WGET_URL="$GNU_MIRROR/$SOURCE/$TARBALL" + +DEPENDS="" +BUILD_DEPENDS="" + +# Cross toolchain variables. +CROSS_TARGET="x86_64-slitaz-linux" +CROSS_PREFIX="/usr/cross/x86_64" +CROSS_TRIPLET="--build=$HOST_SYSTEM --host=$HOST_SYSTEM --target=$CROSS_TARGET" +BUILD64="-m64" + +# CFLAGS and CXXFLAGS must not be set during the building of cross-tools. +unset CFLAGS CXXFLAGS CONFIG_SITE + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + mkdir ../build && cd ../build + #--with-sysroot=$CROSS_PREFIX + $src/configure \ + --prefix=$CROSS_PREFIX \ + --program-prefix=${CROSS_TARGET}- \ + --enable-targets=$ARCH-slitaz-linux \ + --enable-shared \ + --enable-64-bit-bfd \ + --disable-multilib \ + --disable-werror \ + --disable-nls \ + $CROSS_TRIPLET && + make configure-host && + make && make install + #make tooldir=$CROSS_PREFIX && + #make tooldir=$CROSS_PREFIX install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p ${fs}${CROSS_PREFIX}/include + cp -a $install/usr/cross $fs/usr + rm -rf ${fs}${CROSS_PREFIX}/share + + # libiberty.h + cp -a $src/include/libiberty.h ${fs}${CROSS_PREFIX}/include +}