aboutsummaryrefslogtreecommitdiff
path: root/ltcf-cxx.sh
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2001-01-27 19:12:14 +0000
committerAlexandre Oliva <aoliva@redhat.com>2001-01-27 19:12:14 +0000
commit0957b95fb4b2fb395acfc69b10486dcf9f85b5f1 (patch)
tree9f3fefac0196fc34bb9ac31da84ed13783dbcb4e /ltcf-cxx.sh
parent1d9c1322139ac606478c3c9aa2f5498cea251aff (diff)
* ltcf-c.sh (ld_shlibs) [aix5*]: Disable on unknown CPU types.
* ltcf-cxx.sh, ltcf-gcj.sh: Likewise. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@39297 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'ltcf-cxx.sh')
-rw-r--r--ltcf-cxx.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/ltcf-cxx.sh b/ltcf-cxx.sh
index fad6a4ae552..3469e37875b 100644
--- a/ltcf-cxx.sh
+++ b/ltcf-cxx.sh
@@ -2,7 +2,7 @@
# ltcf-cxx.sh - Create a C++ compiler specific configuration
#
-# Copyright (C) 1996-1999,2000 Free Software Foundation, Inc.
+# Copyright (C) 1996-1999, 2000, 2001 Free Software Foundation, Inc.
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
#
# Original C++ support by:Gary V. Vaughan <gvv@techie.com>
@@ -141,6 +141,12 @@ case "$host_os" in
# Exported symbols can be pulled into shared objects from archives
whole_archive_flag_spec=' '
build_libtool_need_lc=yes
+
+ # We don't want to build shared libraries on unknown CPU types.
+ case $host_cpu in
+ powerpc | rs6000) ;;
+ *) ld_shlibs=no ;;
+ esac
;;
chorus*)
case "$cc_basename" in