export PATH=/opt/gcc-4.3-ls232/bin/:$PATH

compile_static()
{
#export CC='mipsel-linux-gcc -L/work/hisense/wrs/oprofile/rootfs/lib -I/work/hisense/wrs/oprofile/rootfs/usr/include'
#export CC='mipsel-linux-gcc --sysroot=/media/squeeze/'
export CC='mipsel-linux-gcc --sysroot=/media/squeeze/ -isysroot /media/squeeze/ -static '
export CXX='mipsel-linux-g++ --sysroot=/media/squeeze/ -isysroot /media/squeeze/ -static '

export LIBS=-lz
#./configure --target=mipsel-linux --host=mipsel-linux --build=x86_64-linux --with-kernel-support --prefix=/work/hisense/wrs/oprofile/rootfs 
./configure --target=mipsel-linux --host=mipsel-linux --build=x86_64-linux --with-kernel-support --prefix=/work/hisense/wrs/oprofile/rootfs 
}

compile()
{
export CC='mipsel-linux-gcc --sysroot=/media/squeeze/ -isysroot /media/squeeze/'
export CXX='mipsel-linux-g++ --sysroot=/media/squeeze/ -isysroot /media/squeeze/'

./configure --target=mipsel-linux --host=mipsel-linux --build=x86_64-linux --with-kernel-support --prefix=/work/hisense/wrs/oprofile/rootfs 
}

compile_static
