summaryrefslogtreecommitdiffstats
path: root/binutils
diff options
context:
space:
mode:
Diffstat (limited to 'binutils')
-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;