diff options
author | Alexandre Oliva <oliva@dcc.unicamp.br> | 1999-04-11 23:00:24 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1999-04-11 17:00:24 -0600 |
commit | e891fbfe342f4ef53587bdb71a30a1ea0df7c251 (patch) | |
tree | c6ae4ff25e9c075ec9f7ce01bb43bb9632d68935 /config-ml.in | |
parent | 1bd0b556b421ac098196cd4889f50eac23d5394d (diff) | |
download | gcc-e891fbfe342f4ef53587bdb71a30a1ea0df7c251.tar.gz |
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
Diffstat (limited to 'config-ml.in')
-rw-r--r-- | config-ml.in | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/config-ml.in b/config-ml.in index 3a159cf31d4..ed8b1edfaf4 100644 --- a/config-ml.in +++ b/config-ml.in @@ -299,6 +299,28 @@ mips*-*-*) esac done 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*-*-*) if [ x$enable_softfloat = xno ] |