From e216f1a0eba350617462638b5bcaf82aafd6b1f4 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Sat, 27 Jan 2001 19:20:51 +0000 Subject: [PATCH] * ltcf-c.sh (ld_shlibs) [aix5*]: Disable on unknown CPU types. * ltcf-cxx.sh, ltcf-gcj.sh: Likewise. --- ChangeLog | 5 +++++ ltcf-c.sh | 8 +++++++- ltcf-cxx.sh | 8 +++++++- ltcf-gcj.sh | 6 ++++++ 4 files changed, 25 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 09450ca49..0360571b9 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-27 Michael Sokolov * ltcf-cxx.sh (ac_cv_prog_cc_pic_works, ac_cv_prog_cc_static_works): diff --git a/ltcf-c.sh b/ltcf-c.sh index 93e83162a..bffaa5d17 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 @@ -295,6 +295,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 5b2e8722d..58fb94bee 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 @@ -137,6 +137,12 @@ case "$host_os" in aix4*) # 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 ;; chorus*) case "$cc_basename" in diff --git a/ltcf-gcj.sh b/ltcf-gcj.sh index 975310ee2..8697f58ec 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*) -- 2.47.2