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
This commit is contained in:
parent
a242e6f5e0
commit
1882b2b11e
@ -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.
|
||||
|
24
config-ml.in
24
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.
|
||||
|
Loading…
Reference in New Issue
Block a user