aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRainer Orth <ro@TechFak.Uni-Bielefeld.DE>1999-11-23 07:57:06 +0000
committerJeffrey A Law <law@cygnus.com>1999-11-23 07:57:06 +0000
commit9c401bbdff6786ce3b4b574a97c30c702922d011 (patch)
treec42e31b91e56927da02ed1fcb5132f1ee8edf062
parent045c3c134769e51e0c4695ec98909de772e9079c (diff)
* config-ml.in (sparc*-*-*): Disable sparcv9 support if the
necessary libraries are missing. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@30632 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--ChangeLog5
-rw-r--r--config-ml.in24
2 files changed, 29 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f82d6163f14..4f7b549c8ad 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Nov 23 00:57:41 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
+
+ * config-ml.in (sparc*-*-*): Disable sparcv9 support if the
+ necessary libraries are missing.
+
Fri Nov 19 11:22:31 MST 1999 Diego Novillo <dnovillo@cygnus.com>
* MAINTAINERS: Add new 'write after approval' maintainer.
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.