libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Disable shared libraries on upcoming AIX/ia64


From: Alexandre Oliva
Subject: Disable shared libraries on upcoming AIX/ia64
Date: 27 Jan 2001 17:18:39 -0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Crater Lake)

Some pending patches introduce support shared-library support for AIX
5, but only for AIX 5/power.  This means the upcoming release of AIX 5
for the AI64 platform, that uses a completely different linker and
shared-library model (ELF, thanks God! :-), would encounter a libtool
that doesn't support it.  I'm checking in these patches in MLB, HEAD
and 1.3 branch, so that we at least don't attempt to build shared
libraries on non-Power AIX platforms, to give volunteers time to
introduce appropriate shared library support.

The patch for ltcf-cxx.sh may look like utter non-sense, but it's
there so that it's not forgotten when the pending patch that
introduces C++ shared-library support is installed.

Index: ChangeLog
from  Alexandre Oliva  <address@hidden>

        * ltcf-c.sh (ld_shlibs) [aix5*]: Disable on unknown CPU types.
        * ltcf-cxx.sh, ltcf-gcj.sh: Likewise.

Index: ltcf-c.sh
===================================================================
RCS file: /home/cvs/libtool/Attic/ltcf-c.sh,v
retrieving revision 1.1.2.24
diff -u -p -r1.1.2.24 ltcf-c.sh
--- ltcf-c.sh 2000/12/22 23:49:02 1.1.2.24
+++ ltcf-c.sh 2001/01/27 19:10:56
@@ -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 <address@hidden>, 1996
 #
 # This file is free software; you can redistribute it and/or modify it
@@ -294,6 +294,12 @@ else
     case "$host_os" in aix4.[01]|aix4.[01].*)
       # 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
    ;;
 
Index: ltcf-cxx.sh
===================================================================
RCS file: /home/cvs/libtool/Attic/ltcf-cxx.sh,v
retrieving revision 1.1.2.28
diff -u -p -r1.1.2.28 ltcf-cxx.sh
--- ltcf-cxx.sh 2001/01/27 19:05:03 1.1.2.28
+++ ltcf-cxx.sh 2001/01/27 19:10:56
@@ -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 <address@hidden>, 1996
 #
 # Original C++ support by:Gary V. Vaughan <address@hidden>
@@ -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
Index: ltcf-gcj.sh
===================================================================
RCS file: /home/cvs/libtool/Attic/ltcf-gcj.sh,v
retrieving revision 1.1.2.10
diff -u -p -r1.1.2.10 ltcf-gcj.sh
--- ltcf-gcj.sh 2001/01/24 02:22:17 1.1.2.10
+++ ltcf-gcj.sh 2001/01/27 19:10:56
@@ -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*)
Index: ChangeLog
from  Alexandre Oliva  <address@hidden>

        * libtool.m4 (ld_shlibs) [aix4*]: Disable on unknown CPU types.

Index: libtool.m4
===================================================================
RCS file: /home/cvs/libtool/libtool.m4,v
retrieving revision 1.141
diff -u -p -r1.141 libtool.m4
--- libtool.m4 2000/12/22 23:40:11 1.141
+++ libtool.m4 2001/01/27 19:16:04
@@ -1406,6 +1406,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*)
Index: ChangeLog
from  Alexandre Oliva  <address@hidden>

        * ltconfig.in (ld_shlibs) [aix4*]: Disable on unknown CPU types.

Index: ltconfig.in
===================================================================
RCS file: /home/cvs/libtool/Attic/ltconfig.in,v
retrieving revision 1.125.2.93
diff -u -p -r1.125.2.93 ltconfig.in
--- ltconfig.in 2000/10/30 23:25:09 1.125.2.93
+++ ltconfig.in 2001/01/27 19:17:22
@@ -1,7 +1,8 @@
 #! /bin/sh
 
 # ltconfig - Create a system-specific libtool.
-# Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
+# Free Software Foundation, Inc.
 # Originally by Gordon Matzigkeit <address@hidden>, 1996
 #
 # This file is free software; you can redistribute it and/or modify it
@@ -1314,6 +1315,12 @@ else
     case "$host_os" in aix4.[01]|aix4.[01].*)
       # 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
    ;;
 
-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  address@hidden, redhat.com}
CS PhD student at IC-Unicamp        address@hidden, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

reply via email to

[Prev in Thread] Current Thread [Next in Thread]