#!/bin/bash

# NOTE: source downloaded for cross-compiler

cd $BUILD_DIR
rm -rf binutils-$BINUTILS_VER
tar -xf $SOURCE_DIR/binutils-$BINUTILS_VER.tar.bz2

rm -rf binutils-build
mkdir -p binutils-build
cd binutils-build

../binutils-$BINUTILS_VER/configure \
  --prefix= \
  --host=$TARGET \
  --disable-nls

make all DESTDIR=$HURD_DIR install

cd $ROOT
