From: Alexandre Oliva Date: Sat, 27 Jan 2001 19:22:59 +0000 (+0000) Subject: * ltcf-c.sh (ld_shlibs) [aix5*]: Disable on unknown CPU types. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7487e485993880d2ec6f6e233b9889f28c904973;p=binutils-gdb.git * ltcf-c.sh (ld_shlibs) [aix5*]: Disable on unknown CPU types. * ltcf-cxx.sh, ltcf-gcj.sh: Likewise. --- diff --git a/ChangeLog b/ChangeLog index f600efde0fe..2799a47a939 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-01-27 Alexandre Oliva + + * ltcf-c.sh (ld_shlibs) [aix5*]: Disable on unknown CPU types. + * ltcf-cxx.sh, ltcf-gcj.sh: Likewise. + 2001-01-24 Alexandre Oliva * ltmain.sh (TAG disable-shared, TAG disable-static): Make sure we diff --git a/ltcf-c.sh b/ltcf-c.sh index e57abb1cb2b..2e62af76241 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 , 1996 # # This file is free software; you can redistribute it and/or modify it @@ -283,6 +283,12 @@ else # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on always_export_symbols=yes ;; esac + + # We don't want to build shared libraries on unknown CPU types. + case $host_cpu in + powerpc | rs6000) ;; + *) ld_shlibs=no ;; + esac ;; amigaos*) diff --git a/ltcf-cxx.sh b/ltcf-cxx.sh index cefa0085624..eca44c068f9 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 , 1996 # # Original C++ support by:Gary V. Vaughan @@ -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' diff --git a/ltcf-gcj.sh b/ltcf-gcj.sh index f82163dc147..2448bd8d808 100644 --- a/ltcf-gcj.sh +++ b/ltcf-gcj.sh @@ -286,6 +286,12 @@ else # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on always_export_symbols=yes ;; esac + + # We don't want to build shared libraries on unknown CPU types. + case $host_cpu in + powerpc | rs6000) ;; + *) ld_shlibs=no ;; + esac ;; amigaos*)