wok-undigest annotate cross-x86_64-binutils/receipt @ rev 1038
gcc: remove wrong error trigger (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Oct 14 22:33:37 2013 +0000 (2013-10-14) |
parents | 4e4ce06eacc0 |
children | 1ef621db1c6d |
rev | line source |
---|---|
pankso@695 | 1 # SliTaz package receipt. |
pankso@695 | 2 |
pankso@695 | 3 PACKAGE="cross-x86_64-binutils" |
pankso@695 | 4 VERSION="2.22" |
pankso@695 | 5 CATEGORY="system-tools" |
pankso@695 | 6 SHORT_DESC="Cross compilation linker targeting x86_64 platform." |
pankso@695 | 7 MAINTAINER="erjo@slitaz.org" |
pankso@695 | 8 SOURCE="binutils" |
pankso@695 | 9 WEB_SITE="http://www.gnu.org/software/binutils/" |
pankso@695 | 10 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pankso@695 | 11 WGET_URL="$GNU_MIRROR/$SOURCE/$TARBALL" |
pankso@695 | 12 |
pankso@695 | 13 DEPENDS="" |
pankso@695 | 14 BUILD_DEPENDS="" |
pankso@695 | 15 |
pankso@695 | 16 # Cross toolchain variables. |
pankso@695 | 17 CROSS_TARGET="x86_64-slitaz-linux" |
pankso@695 | 18 CROSS_PREFIX="/usr/cross/x86_64" |
pankso@695 | 19 CROSS_TRIPLET="--build=$HOST_SYSTEM --host=$HOST_SYSTEM --target=$CROSS_TARGET" |
pankso@695 | 20 BUILD64="-m64" |
pankso@695 | 21 |
pankso@695 | 22 # CFLAGS and CXXFLAGS must not be set during the building of cross-tools. |
pankso@695 | 23 unset CFLAGS CXXFLAGS CONFIG_SITE |
pankso@695 | 24 |
pankso@695 | 25 # Rules to configure and make the package. |
pankso@695 | 26 compile_rules() |
pankso@695 | 27 { |
pankso@695 | 28 cd $src |
pankso@695 | 29 mkdir ../build && cd ../build |
pankso@695 | 30 #--with-sysroot=$CROSS_PREFIX |
pankso@695 | 31 #--enable-shared |
pankso@695 | 32 $src/configure \ |
pankso@695 | 33 --prefix=$CROSS_PREFIX \ |
pankso@695 | 34 --program-prefix=${CROSS_TARGET}- \ |
pankso@695 | 35 --enable-targets=$ARCH-slitaz-linux \ |
pankso@695 | 36 --enable-64-bit-bfd \ |
pankso@695 | 37 --disable-multilib \ |
pankso@695 | 38 --disable-werror \ |
pankso@695 | 39 --disable-nls \ |
pankso@695 | 40 $CROSS_TRIPLET && |
pankso@695 | 41 make configure-host && |
pankso@695 | 42 make && make install |
pankso@695 | 43 #make tooldir=$CROSS_PREFIX && |
pankso@695 | 44 #make tooldir=$CROSS_PREFIX install |
pankso@695 | 45 } |
pankso@695 | 46 |
pankso@695 | 47 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@695 | 48 genpkg_rules() |
pankso@695 | 49 { |
pankso@695 | 50 mkdir -p ${fs}${CROSS_PREFIX}/include |
pankso@695 | 51 cp -a $install/usr/cross $fs/usr |
pankso@695 | 52 rm -rf ${fs}${CROSS_PREFIX}/share |
pankso@695 | 53 |
pankso@695 | 54 # libiberty.h |
pankso@695 | 55 cp -a $src/include/libiberty.h ${fs}${CROSS_PREFIX}/include |
pankso@695 | 56 |
pankso@695 | 57 # Move ldscripts and create symlink |
pankso@695 | 58 cd ${fs}${CROSS_PREFIX}/$CROSS_TARGET |
pankso@695 | 59 mv lib/ldscripts ../lib |
pankso@695 | 60 rmdir lib && ln -s ../lib . |
pascal@784 | 61 chown -R root.root $fs |
pankso@695 | 62 } |