summaryrefslogtreecommitdiffstats
path: root/binutils/Pkgfile
diff options
context:
space:
mode:
authorLukc <lukc@upyum.com>2011-01-08 18:45:21 +0100
committerLukc <lukc@upyum.com>2011-01-08 18:45:21 +0100
commitc4b9d9e80826b8f309f21298440c0baf492929a2 (patch)
tree98b2561257dd9518326e1c97cc03102a58295b01 /binutils/Pkgfile
parent91f7c987c26853e777c599731e65222081df3732 (diff)
downloaddevel-c4b9d9e80826b8f309f21298440c0baf492929a2.tar.gz
devel-c4b9d9e80826b8f309f21298440c0baf492929a2.tar.bz2
devel-c4b9d9e80826b8f309f21298440c0baf492929a2.tar.xz
devel-c4b9d9e80826b8f309f21298440c0baf492929a2.zip
Foutu mainteneur de pkg++, alors.
Diffstat (limited to 'binutils/Pkgfile')
-rw-r--r--binutils/Pkgfile15
1 files changed, 8 insertions, 7 deletions
diff --git a/binutils/Pkgfile b/binutils/Pkgfile
index f87a704..88694cd 100644
--- a/binutils/Pkgfile
+++ b/binutils/Pkgfile
@@ -4,10 +4,10 @@ maintainer="Lukc <lukc AT upyum DOT com>"
url="http://sources.redhat.com/binutils/"
depends=(zlib)
-if [[ -z ${CROSS_TARGET} ]]; then
+if [[ -z ${CTARGET} ]]; then
name=binutils
else
- name=binutils-$CROSS_TARGET
+ name=binutils-$CTARGET
fi
name=binutils
version=2.21
@@ -19,15 +19,16 @@ build ()
sed -i '/^# RELEASE=y/s/#//' $name-$version/bfd/Makefile.in;
mkdir build;
cd build;
- if [[ -n $CROSS_TRIPLET ]]; then
- info "Building $name for $CROSS_TRIPLET."
+ if [[ -n $CTARGET ]]; then
+ info "Building $name for $CTARGET."
fi
../$name-$version/configure \
- ${CHOST:+--build=${CHOST}} \
- ${CTARGET:+--host=${CTARGET}} \
- ${CROSS_TRIPLET:+--target=${CROSS_TRIPLET}} \
+ ${CBUILD:+--build=${CBUILD}} \
+ ${CHOST:+--host=${CHOST}} \
+ ${CTARGET:+--target=${CTARGET}} \
--prefix=$prefix \
--mandir=$mandir \
+ $(use_enable static) \
--enable-shared \
$(use_enable nls);
make tooldir=$prefix;