]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
1524. [port] AIX needs to be able to resolve all symbols when
authorMark Andrews <marka@isc.org>
Wed, 8 Oct 2003 06:36:13 +0000 (06:36 +0000)
committerMark Andrews <marka@isc.org>
Wed, 8 Oct 2003 06:36:13 +0000 (06:36 +0000)
                        creating shared libraries (--with-libtool).

12 files changed:
CHANGES
bin/tests/Makefile.in
lib/Makefile.in
lib/bind/Makefile.in
lib/bind/configure
lib/bind/libtool.m4
lib/bind/ltmain.sh
lib/dns/Makefile.in
lib/isccc/Makefile.in
lib/isccfg/Makefile.in
lib/tests/Makefile.in
ltmain.sh

diff --git a/CHANGES b/CHANGES
index dcbf0e187b778aa526585d7fd8b2a5ed6e3d2651..d7f7f416f8ddfde66868d9530d9af62af873559a 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+1524.  [port]          AIX needs to be able to resolve all symbols when
+                       creating shared libraries (--with-libtool).
+
 1523.  [bug]           Fix race condition in rbtdb. [RT# 9189]
 
 1522.  [bug]           dns_db_findnode() relax the requirements on 'name'.
index 05704e38add264ab34619850cd1b6a01c75f677a..a39db58e1acb37e6c8e1a1ff7b1c5637ca1e737d 100644 (file)
@@ -13,7 +13,7 @@
 # NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
 # WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-# $Id: Makefile.in,v 1.118 2003/09/30 05:56:02 marka Exp $
+# $Id: Makefile.in,v 1.119 2003/10/08 06:36:10 marka Exp $
 
 srcdir =       @srcdir@
 VPATH =                @srcdir@
@@ -281,7 +281,7 @@ journalprint@EXEEXT@: journalprint.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
 
 cfg_test@EXEEXT@: cfg_test.@O@ ${ISCCFGDEPLIBS} ${ISCDEPLIBS}
        ${LIBTOOL} ${CC} ${CFLAGS} -o $@ cfg_test.@O@ \
-               ${ISCCFGLIBS} ${ISCLIBS} ${LIBS}
+               ${ISCCFGLIBS} ${DNSLIBS} ${ISCLIBS} ${LIBS}
 
 distclean::
        rm -f headerdep_test.sh
index 7903bf867028a2a24d7a008fe6bcda437bb9e47b..db7224b4c58ff96ba48ce781392f9490519a07f6 100644 (file)
@@ -13,7 +13,7 @@
 # NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
 # WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-# $Id: Makefile.in,v 1.16 2001/09/20 15:16:50 marka Exp $
+# $Id: Makefile.in,v 1.17 2003/10/08 06:36:10 marka Exp $
 
 srcdir =       @srcdir@
 VPATH =                @srcdir@
@@ -23,7 +23,7 @@ top_srcdir =  @top_srcdir@
 # Attempt to disable parallel processing.
 .NOTPARALLEL:
 .NO_PARALLEL:
-SUBDIRS =      isc isccc isccfg dns bind9 lwres tests 
+SUBDIRS =      isc isccc dns isccfg bind9 lwres tests 
 TARGETS =
 
 @BIND9_MAKE_RULES@
index d1bc163fda26cfd726ae79804bf57c9726d7ac37..1637f0e06ecac0a082c9601d5eedc2d9e76283e0 100644 (file)
@@ -13,7 +13,7 @@
 # NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
 # WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-# $Id: Makefile.in,v 1.18 2002/12/13 02:00:15 marka Exp $
+# $Id: Makefile.in,v 1.19 2003/10/08 06:36:10 marka Exp $
 
 srcdir =        @srcdir@
 VPATH =         @srcdir@
@@ -21,6 +21,8 @@ top_srcdir =    @top_srcdir@
 
 @LIBBIND_API@
 
+LIBS =         @LIBS@
+
 DAEMON_OBJS=bsd/daemon.@O@
 STRSEP_OBJS=bsd/strsep.@O@
 
index 38781a8142d05e159254ec4b674d0ff26c45f4a6..2bc1b47f9b9438ba2910d92201620c17886b9c75 100644 (file)
@@ -8151,7 +8151,7 @@ else
         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
         # Warning - without using the other run time loading flags, -berok will
         #           link without error, but may produce a broken library.
-        allow_undefined_flag='${wl}-berok"
+        allow_undefined_flag='${wl}-berok'
         # This is a bit strange, but is similar to how AIX traditionally builds
         # it's shared libraries.
         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
index 6f43c7729d9b7c963a09ad98fd0d3f9beacfaeae..f96059b080752b62e768a2f42a1350eaa39292ab 100644 (file)
@@ -1470,7 +1470,7 @@ else
         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
         # Warning - without using the other run time loading flags, -berok will
         #           link without error, but may produce a broken library.
-        allow_undefined_flag='${wl}-berok"
+        allow_undefined_flag='${wl}-berok'
         # This is a bit strange, but is similar to how AIX traditionally builds
         # it's shared libraries.
         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
index 5959c479b0e86af58baeeaae8de9e8f2dbbbecca..96c583593508b6524432db8be84d6721517b00b8 100644 (file)
@@ -725,6 +725,9 @@ compiler."
       # that all symbols are satisfied, otherwise we get a static library.
       allow_undefined=yes
       ;;
+    *-*-aix*)
+      allow_undefined=no
+      ;;
     *)
       allow_undefined=yes
       ;;
@@ -940,6 +943,7 @@ compiler."
       -allow-undefined)
        # FIXME: remove this flag sometime in the future.
        $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
+       allow_undefined=yes
        continue
        ;;
 
index fe25f3aed011f78cada4e4258b943793722c8b49..5af4806e3ae7cec6e7656d39cc489bad93e6952d 100644 (file)
@@ -13,7 +13,7 @@
 # NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
 # WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-# $Id: Makefile.in,v 1.138 2003/09/30 05:56:10 marka Exp $
+# $Id: Makefile.in,v 1.139 2003/10/08 06:36:11 marka Exp $
 
 srcdir =       @srcdir@
 VPATH =                @srcdir@
@@ -30,6 +30,10 @@ CINCLUDES =  -I. ${DNS_INCLUDES} ${ISC_INCLUDES}
 CDEFINES =
 CWARNINGS =
 
+ISCLIBS =      ../../lib/isc/libisc.@A@
+
+ISCDEPLIBS =   ../../lib/isc/libisc.@A@
+
 LIBS =         @LIBS@
 
 # Alphabetically
@@ -98,7 +102,7 @@ libdns.la: ${OBJS}
        ${LIBTOOL} --mode=link \
                ${CC} ${ALL_CFLAGS} -o libdns.la -rpath ${libdir} \
                -version-info ${LIBINTERFACE}:${LIBREVISION}:${LIBAGE} \
-               ${OBJS} ${LIBS}
+               ${OBJS} ${LIBS} ${ISCLIBS}
 
 timestamp: libdns.@A@
        touch timestamp
index 637103177245298068ac65c184c457f578a66f25..5dc2d9cd5611e77c78119c3cb92daf45289ffa4c 100644 (file)
@@ -13,7 +13,7 @@
 # NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
 # WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-# $Id: Makefile.in,v 1.3 2001/09/20 15:16:56 marka Exp $
+# $Id: Makefile.in,v 1.4 2003/10/08 06:36:12 marka Exp $
 
 srcdir =       @srcdir@
 VPATH =                @srcdir@
@@ -31,7 +31,7 @@ CDEFINES =
 CWARNINGS =
 
 ISCLIBS =      ../../lib/isc/libisc.@A@
-ISCCCLIBS =    ../../lib/cc/libisccc.@A@
+ISCCCLIBS =    ../../lib/isccc/libisccc.@A@
 
 ISCDEPLIBS =   ../../lib/isc/libisc.@A@
 ISCCCDEPLIBS = libisccc.@A@
@@ -71,7 +71,7 @@ libisccc.la: ${OBJS}
        ${LIBTOOL} --mode=link \
                ${CC} ${ALL_CFLAGS} -o libisccc.la -rpath ${libdir} \
                -version-info ${LIBINTERFACE}:${LIBREVISION}:${LIBAGE} \
-               ${OBJS} ${LIBS}
+               ${OBJS} ${LIBS} ${ISCLIBS}
 
 timestamp: libisccc.@A@
        touch timestamp
index 755e3b505f9cada70a4c56c5a285c8f9d09a65ad..5b1c2495e93426f93156fb800744349b6ca8985c 100644 (file)
@@ -13,7 +13,7 @@
 # NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
 # WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-# $Id: Makefile.in,v 1.9 2002/02/20 03:35:47 marka Exp $
+# $Id: Makefile.in,v 1.10 2003/10/08 06:36:12 marka Exp $
 
 srcdir =       @srcdir@
 VPATH =                @srcdir@
@@ -31,6 +31,8 @@ CDEFINES =
 CWARNINGS =
 
 ISCLIBS =      ../../lib/isc/libisc.@A@
+ISCCCLIBS =    ../../lib/isccc/libisccc.@A@
+DNSLIBS =      ../../lib/dns/libdns.@A@
 ISCCFGLIBS =   ../../lib/cfg/libisccfg.@A@
 
 ISCDEPLIBS =   ../../lib/isc/libisc.@A@
@@ -66,7 +68,7 @@ libisccfg.la: ${OBJS}
        ${LIBTOOL} --mode=link \
                ${CC} ${ALL_CFLAGS} -o libisccfg.la -rpath ${libdir} \
                -version-info ${LIBINTERFACE}:${LIBREVISION}:${LIBAGE} \
-               ${OBJS} ${LIBS}
+               ${OBJS} ${LIBS} ${DNSLIBS} ${ISCCCLIBS} ${ISCLIBS}
 
 timestamp: libisccfg.@A@
        touch timestamp
index ac007a418c31e1c8f7f12ef2d51cafc4a44e835c..57f67f6dca4df4a85779a391023c01fa30c22ea6 100644 (file)
@@ -13,7 +13,7 @@
 # NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
 # WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-# $Id: Makefile.in,v 1.15 2001/09/20 15:17:01 marka Exp $
+# $Id: Makefile.in,v 1.16 2003/10/08 06:36:13 marka Exp $
 
 srcdir =       @srcdir@
 VPATH =                @srcdir@
@@ -25,6 +25,12 @@ CINCLUDES =  ${DNS_INCLUDES} ${ISC_INCLUDES} ${TEST_INCLUDES}
 CDEFINES =
 CWARNINGS =
 
+ISCLIBS =      ../../lib/isc/libisc.@A@
+ISCCCLIBS =    ../../lib/isccc/libisccc.@A@
+
+ISCDEPLIBS =   ../../lib/isc/libisc.@A@
+ISCCCDEPLIBS = libisccc.@A@
+
 OBJS =         t_api.@O@
 
 SRCS =         t_api.c
@@ -41,7 +47,7 @@ libt_api.@SA@: ${OBJS}
 libt_api.la: ${OBJS}
        ${LIBTOOL} --mode=link \
                ${CC} ${ALL_CFLAGS} -o libt_api.la -rpath ${libdir} \
-               ${OBJS} ${LIBS}
+               ${OBJS} ${LIBS} ${ISCLIBS}
 
 timestamp: libt_api.@A@
        touch timestamp
index 6e5bf3657c9442175098eace40ec71d05e1ff798..60784fa005e21bb7d2cccabf286b29bdffa9efd4 100644 (file)
--- a/ltmain.sh
+++ b/ltmain.sh
@@ -737,6 +737,9 @@ compiler."
       # that all symbols are satisfied, otherwise we get a static library.
       allow_undefined=yes
       ;;
+    *-*-aix*)
+      allow_undefined=no
+      ;;
     *)
       allow_undefined=yes
       ;;
@@ -952,6 +955,7 @@ compiler."
       -allow-undefined)
        # FIXME: remove this flag sometime in the future.
        $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
+       allow_undefined=yes
        continue
        ;;