aboutsummaryrefslogtreecommitdiff
path: root/ltcf-c.sh
diff options
context:
space:
mode:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-27 19:12:14 +0000
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-27 19:12:14 +0000
commit21037ec8e2afab0ac8f92ececbf364a204e3b039 (patch)
tree9f3fefac0196fc34bb9ac31da84ed13783dbcb4e /ltcf-c.sh
parentcb2e4338d269d2fec4e6608d171f569a1cc5cf95 (diff)
* ltcf-c.sh (ld_shlibs) [aix5*]: Disable on unknown CPU types.
* ltcf-cxx.sh, ltcf-gcj.sh: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39297 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'ltcf-c.sh')
-rw-r--r--ltcf-c.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/ltcf-c.sh b/ltcf-c.sh
index f00055f2ce8..80bf5ae18c0 100644
--- a/ltcf-c.sh
+++ b/ltcf-c.sh
@@ -2,7 +2,7 @@
# ltcf-c.sh - Create a C compiler specific configuration
#
-# Copyright (C) 1996-2000 Free Software Foundation, Inc.
+# Copyright (C) 1996-2000, 2001 Free Software Foundation, Inc.
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
#
# This file is free software; you can redistribute it and/or modify it
@@ -283,6 +283,12 @@ else
# 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
;;
amigaos*)