#!/bin/bash

export LD_LIBRARY_PATH=

echo "LD_LIBRARY_PATH == |$LD_LIBRARY_PATH|"

export PATH="/tuba_local/crosstool/crosstool-0.24/result/arm-arm9-linux-gnu/gcc-3.2.1-glibc-2.3.2/bin:/bin:/sbin:/usr/sbin:/usr/bin"

echo ""
echo $PATH
echo ""

export bash_cv_have_mbstate_t=yes

export CC=arm-arm9-linux-gnu-gcc
export AR=arm-arm9-linux-gnu-ar
export LD=arm-arm9-linux-gnu-ld
export NM=arm-arm9-linux-gnu-nm
export AS=arm-arm9-linux-gnu-as

echo "CC == $CC"
echo "AR == $AR"
echo "LD == $LD"
echo "NM == $NM"
echo "AS == $AS"


../gdb-6.0/configure --host=arm-arm9-linux-gnu --build=i686-pc-linux-gnu --target=arm-arm9-linux-gnu

make
