summaryrefslogtreecommitdiff
path: root/config-ml.in
diff options
context:
space:
mode:
authorRainer Orth <ro@TechFak.Uni-Bielefeld.DE>1999-11-23 07:57:06 +0000
committerJeff Law <law@gcc.gnu.org>1999-11-23 00:57:06 -0700
commit1882b2b11e85d859a3e55569caddc8970284933a (patch)
treec42e31b91e56927da02ed1fcb5132f1ee8edf062 /config-ml.in
parenta242e6f5e0c5cc869132f10bab2284a177ed6028 (diff)
downloadgcc-1882b2b11e85d859a3e55569caddc8970284933a.tar.gz
config-ml.in (sparc*-*-*): Disable sparcv9 support if the necessary libraries are missing.
* config-ml.in (sparc*-*-*): Disable sparcv9 support if the necessary libraries are missing. From-SVN: r30632
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.