diff options
Diffstat (limited to 'ltcf-cxx.sh')
-rw-r--r-- | ltcf-cxx.sh | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/ltcf-cxx.sh b/ltcf-cxx.sh index cefa00856..ab9e62721 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' @@ -570,9 +576,8 @@ ac_cv_prog_cc_static= ac_cv_prog_cc_no_builtin= ac_cv_prog_cc_can_build_shared=$can_build_shared -# It is not enough to reset these cached values, they must be unset. -unset ac_cv_prog_cc_pic_works -unset ac_cv_prog_cc_static_works +ac_cv_prog_cc_pic_works= +ac_cv_prog_cc_static_works= if test "$with_gcc" = yes; then ac_cv_prog_cc_wl='-Wl,' @@ -798,7 +803,7 @@ private: EOF -if eval $ac_compile 2>&5; then +if (eval $ac_compile) 2>&5; then # Parse the compiler output and extract the necessary # objects, libraries and library flags. |