2005-12-05 14:11:09 +00:00
|
|
|
source $stdenv/setup
|
2005-11-03 23:20:43 +00:00
|
|
|
|
2005-12-31 16:27:23 +00:00
|
|
|
if test $cross = "arm-linux" ; then
|
|
|
|
configureFlags="--target=arm-linux"
|
|
|
|
elif test $cross = "mips-linux" ; then
|
|
|
|
configureFlags="--target=mips-linux"
|
2006-03-03 21:12:20 +00:00
|
|
|
elif test $cross = "mipsel-linux" ; then
|
|
|
|
configureFlags="--target=mipsel-linux"
|
2005-12-31 16:27:23 +00:00
|
|
|
elif test $cross = "sparc-linux" ; then
|
|
|
|
configureFlags="--target=sparc-linux"
|
2006-01-01 01:36:08 +00:00
|
|
|
elif test $cross = "powerpc-linux" ; then
|
|
|
|
configureFlags="--target=powerpc-linux"
|
|
|
|
elif test $cross = "ppc-linux" ; then
|
|
|
|
configureFlags="--target=powerpc-linux"
|
2005-12-31 16:27:23 +00:00
|
|
|
fi
|
|
|
|
|
2005-11-03 23:20:43 +00:00
|
|
|
patchConfigure() {
|
|
|
|
# Clear the default library search path.
|
|
|
|
if test "$noSysDirs" = "1"; then
|
|
|
|
echo 'NATIVE_LIB_DIRS=' >> ld/configure.tgt
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
preConfigure=patchConfigure
|
|
|
|
|
|
|
|
genericBuild
|