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"
|
|
|
|
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
|