config-ml.in: On mips*-*-*...
* config-ml.in: On mips*-*-*, if multidirs contains mabi=64, try to link a trivial program with -mabi=64. If it fails, remove mabi=64 from multidirs. From-SVN: r26355
This commit is contained in:
parent
1bd0b556b4
commit
e891fbfe34
@ -1,3 +1,9 @@
|
|||||||
|
Sun Apr 11 23:55:34 1999 Alexandre Oliva <oliva@dcc.unicamp.br>
|
||||||
|
|
||||||
|
* config-ml.in: On mips*-*-*, if multidirs contains mabi=64, try to
|
||||||
|
link a trivial program with -mabi=64. If it fails, remove mabi=64
|
||||||
|
from multidirs.
|
||||||
|
|
||||||
Sat Apr 10 21:50:01 1999 Philipp Thomas (kthomas@gwdg.de)
|
Sat Apr 10 21:50:01 1999 Philipp Thomas (kthomas@gwdg.de)
|
||||||
|
|
||||||
* config.sub: Set basic_machine to i586 when target_alias = k6-*.
|
* config.sub: Set basic_machine to i586 when target_alias = k6-*.
|
||||||
|
22
config-ml.in
22
config-ml.in
@ -299,6 +299,28 @@ mips*-*-*)
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
case " $multidirs " in
|
||||||
|
*" mabi=64 "*)
|
||||||
|
# We will not be able to create libraries with -mabi=64 if
|
||||||
|
# we cannot even link a trivial program. It usually
|
||||||
|
# indicates the 64bit libraries are missing.
|
||||||
|
if echo 'main() {}' > conftest.c &&
|
||||||
|
${CC-gcc} -mabi=64 conftest.c -o conftest; then
|
||||||
|
:
|
||||||
|
else
|
||||||
|
echo Could not link program with -mabi=64, disabling it.
|
||||||
|
old_multidirs="${multidirs}"
|
||||||
|
multidirs=""
|
||||||
|
for x in ${old_multidirs}; do
|
||||||
|
case "$x" in
|
||||||
|
*mabi=64* ) : ;;
|
||||||
|
*) multidirs="${multidirs} ${x}" ;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
rm -f conftest.c conftest
|
||||||
|
;;
|
||||||
|
esac
|
||||||
;;
|
;;
|
||||||
powerpc*-*-* | rs6000*-*-*)
|
powerpc*-*-* | rs6000*-*-*)
|
||||||
if [ x$enable_softfloat = xno ]
|
if [ x$enable_softfloat = xno ]
|
||||||
|
Loading…
Reference in New Issue
Block a user