This is the mail archive of the
mailing list for the Cygwin project.
Re: Attn: cygport maintainer [was: Re: Libtool 2.2.2]
-----BEGIN PGP SIGNED MESSAGE-----
Charles Wilson wrote:
| Yaakov (Cygwin Ports) wrote:
|> [$0: Remove this warning and the call to LT_OUTPUT if you do not need
|> libtool to exist before AC_OUTPUT.])
|> AU_ALIAS([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
| That looks OK to me. I'll include something like this in the next
| version of libtool2.2 (or "libtool" test: 2.2).
One more patch will be required, namely, to define OBJDUMP where
necessary. I've rolled these two patches together, as attached.
The AC_LIBTOOL_WIN32_DLL macro was supposed to be used in packages which
built on Win32 platforms, in order to create DLLs. This macro tested
for as, dlltool, and objdump. The latter is used in the file_magic test
to determine if a .a is a static or import library.
In 1.5 libtool worked anyway without it, because among other variables,
OBJDUMP was given a "sane default" near the beginning of libtool.m4 and
was always exported, and AS and DLLTOOL weren't needed.
But in 2.2, the "sane defaults" have been minimized, and OBJDUMP is no
longer defined by default, so without the win32-dll arg to LT_INIT (or
the AC_LIBTOOL_WIN32_DLL compat macro), libtool refuses to link shared
libs against non-libtoolized shared libs, because the file_magic test on
the implib fails due to an undefined OBJDUMP variable. Assuring that
OBJDUMP is defined is therefore necessary for compatibility with
Not only that, but this may fix another possible bug on Linux ELF
systems, as there is a test on that platform (line 2461 after the patch)
which uses OBJDUMP, which I don't see where it would have been defined.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
--- libltdl/m4/libtool.m4 2008-04-01 13:20:04.000000000 -0500
+++ /usr/share/aclocal/libtool.m4 2008-04-13 05:21:22.296875000 -0500
@@ -99,8 +99,15 @@
# Old names:
+[$0: Remove this warning and the call to LT_OUTPUT if you do not need
+libtool to exist before AC_OUTPUT.])
dnl aclocal-1.4 backwards compatibility:
dnl AC_DEFUN([AC_PROG_LIBTOOL], )
dnl AC_DEFUN([AM_PROG_LIBTOOL], )
@@ -2026,6 +2033,7 @@
AC_MSG_CHECKING([dynamic linker characteristics])
@@ -2947,6 +2955,7 @@
# -- PORTME fill in with the dynamic library characteristics
AC_CACHE_CHECK([how to recognize dependent libraries],
@@ -6961,6 +6970,18 @@
+# If we don't have a new enough Autoconf to choose the best objdump
+# available, choose the one first in the user's PATH.
+[AC_CHECK_TOOL(OBJDUMP, objdump, false)
+test -z "$OBJDUMP" && OBJDUMP=objdump
+_LT_DECL(, [OBJDUMP], , [An object symbol dumper])
# Check for a fully-functional sed program, that truncates
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html