#!/bin/bash

# NOTE: using source prepare for hurd-headers
cd $BLDDIR/hurd
make clean

CFLAGS="$CFLAGS -march=${CHFS_TARGET%%-*}" \
./configure \
  --host=$CHFS_TARGET \
  --prefix=/tools \
  --disable-profile
make libpthread
make libihash-install libpthread-install

cd $ROOT
