From c4b9d9e80826b8f309f21298440c0baf492929a2 Mon Sep 17 00:00:00 2001 From: Lukc Date: Sat, 8 Jan 2011 18:45:21 +0100 Subject: Foutu mainteneur de pkg++, alors. --- binutils/Pkgfile | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'binutils') diff --git a/binutils/Pkgfile b/binutils/Pkgfile index f87a704..88694cd 100644 --- a/binutils/Pkgfile +++ b/binutils/Pkgfile @@ -4,10 +4,10 @@ maintainer="Lukc " 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; -- cgit v1.2.3-70-g09d2