#! /bin/bash

# Note: using source and build directories from pass1

cd $BUILD_DIR/glibc-build

CFLAGS="$CFLAGS -march=${TARGET%%-*}" \
../glibc-$GLIBC_VER/configure \
  --without-cvs \
  --build=$HOST \
  --host=$TARGET \
  --prefix= \
  --with-headers=$HURD_DIR/include \
  --disable-profile

make install_root=$HURD_DIR all install

cd $ROOT
