summaryrefslogtreecommitdiff
path: root/config-ml.in
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-11-23 07:57:06 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-11-23 07:57:06 +0000
commit5514758e2a485b562ad6214a90e1fd4a8170d07f (patch)
treec42e31b91e56927da02ed1fcb5132f1ee8edf062 /config-ml.in
parent8f8d6e89dae22f753db236293d78f33eaf337f96 (diff)
downloadgcc-5514758e2a485b562ad6214a90e1fd4a8170d07f.tar.gz
* config-ml.in (sparc*-*-*): Disable sparcv9 support if the
necessary libraries are missing. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30632 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'config-ml.in')
-rw-r--r--config-ml.in24
1 files changed, 24 insertions, 0 deletions
diff --git a/config-ml.in b/config-ml.in
index 115110894f2..fbdfb1722db 100644
--- a/config-ml.in
+++ b/config-ml.in
@@ -470,6 +470,30 @@ powerpc*-*-* | rs6000*-*-*)
done
fi
;;
+sparc*-*-*)
+ case " $multidirs " in
+ *" m64 "*)
+ # We will not be able to create libraries with -m64 if
+ # we cannot even link a trivial program. It usually
+ # indicates the 64bit libraries are missing.
+ if echo 'main() {}' > conftest.c &&
+ ${CC-gcc} -m64 conftest.c -o conftest; then
+ :
+ else
+ echo Could not link program with -m64, disabling it.
+ old_multidirs="${multidirs}"
+ multidirs=""
+ for x in ${old_multidirs}; do
+ case "$x" in
+ *m64* ) : ;;
+ *) multidirs="${multidirs} ${x}" ;;
+ esac
+ done
+ fi
+ rm -f conftest.c conftest
+ ;;
+ esac
+ ;;
esac
# Remove extraneous blanks from multidirs.