wok-current view cross-arm-binutils/receipt @ rev 12706
cross-arm-binutils: include libiberty.h
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri May 04 15:48:33 2012 +0200 (2012-05-04) |
parents | 0cc08b00127f |
children | ce3e7500d1b6 |
line source
1 # SliTaz package receipt.
3 PACKAGE="cross-arm-binutils"
4 VERSION="2.22"
5 CATEGORY="system-tools"
6 SHORT_DESC="Cross compilation linker targeting ARM platform."
7 MAINTAINER="pankso@slitaz.org"
8 SOURCE="binutils"
9 WEB_SITE="http://www.gnu.org/software/binutils/"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WGET_URL="$GNU_MIRROR/$SOURCE/$TARBALL"
13 DEPENDS=""
14 BUILD_DEPENDS=""
16 # Cross toolchain variables.
17 CROSS_TARGET="arm-slitaz-linux-gnueabi"
18 CROSS_PREFIX="/usr/cross/arm"
19 CROSS_TRIPLET="--build=$HOST_SYSTEM --host=$HOST_SYSTEM --target=$CROSS_TARGET"
21 # CFLAGS and CXXFLAGS must not be set during the building of cross-tools.
22 unset CFLAGS CXXFLAGS CONFIG_SITE
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd $src
28 mkdir ../build && cd ../build
29 #--with-sysroot=$CROSS_PREFIX
30 $src/configure \
31 --prefix=$CROSS_PREFIX \
32 --program-prefix=${CROSS_TARGET}- \
33 --enable-targets=$ARCH-slitaz-linux \
34 --enable-shared \
35 --disable-multilib \
36 --disable-werror \
37 --disable-nls \
38 $CROSS_TRIPLET &&
39 make configure-host &&
40 make && make install
41 #make tooldir=$CROSS_PREFIX &&
42 #make tooldir=$CROSS_PREFIX install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p ${fs}${CROSS_PREFIX}/include
49 cp -a $install/usr/cross $fs/usr
50 rm -rf ${fs}${CROSS_PREFIX}/share
52 # libiberty.h
53 cp -a $src/include/libiberty.h ${fs}${CROSS_PREFIX}/include
54 }