summaryrefslogtreecommitdiffstats
path: root/ltcf-cxx.sh
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2001-01-27 19:22:59 +0000
committerAlexandre Oliva <aoliva@redhat.com>2001-01-27 19:22:59 +0000
commit4c16ad64a2b6e8ee1b31c25d3e9e41c875e4e474 (patch)
tree23e6ffa2d474f98d03eebc8a49fdefb0d675844c /ltcf-cxx.sh
parentbdfeca609bfd5371677af92cc760a2c9b02e9309 (diff)
downloadcygnal-4c16ad64a2b6e8ee1b31c25d3e9e41c875e4e474.tar.gz
cygnal-4c16ad64a2b6e8ee1b31c25d3e9e41c875e4e474.tar.bz2
cygnal-4c16ad64a2b6e8ee1b31c25d3e9e41c875e4e474.zip
* ltcf-c.sh (ld_shlibs) [aix5*]: Disable on unknown CPU types.
* ltcf-cxx.sh, ltcf-gcj.sh: Likewise.
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 cefa00856..eca44c068 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>
@@ -133,6 +133,12 @@ case "$host_os" in
aix3*)
# FIXME: insert proper C++ library support
ld_shlibs=no
+
+ # We don't want to build shared libraries on unknown CPU types.
+ case $host_cpu in
+ powerpc | rs6000) ;;
+ *) ld_shlibs=no ;;
+ esac
;;
aix4*)
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'