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