This is the mail archive of the mailing list for the binutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch, libtool] Patch libtool.m4 at top-level for autoconf 2.68

I submitted a patch to GCC to update libtool.m4 in the top-level GCC and
binutils trees with some changes that are in the upstream libtool.m4.  It
fixes some warnings that we get when using autoconf 2.68 which is currently
used in libgloss and newlib.  If it is approved in GCC is it OK to check it
in to the binutils tree as well?

Steve Ellcey

The GCC mail is at:

And the patch is:

2013-08-20  Steve Ellcey  <>

	call in brackets.
	(irix*|nonstopux*): use AC_LANG_SOURCE in AC_LINK_IFELSE call.

diff --git a/libtool.m4 b/libtool.m4
index 8a14e2b..7119b35 100644
--- a/libtool.m4
+++ b/libtool.m4
@@ -1079,7 +1079,7 @@ m4_defun([_LT_DARWIN_LINKER_FEATURES],
 # to the aix ld manual.
     /Import File Strings/,/^$/ {
 	/^0/ {
@@ -4926,7 +4926,16 @@ _LT_EOF
 	# implicitly export all symbols.
         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
-        AC_LINK_IFELSE(int foo(void) {},
+	     [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
+			   [C++], [[int foo (void) { return 0; }]],
+			   [Fortran 77], [[
+      subroutine foo
+      end]],
+			   [Fortran], [[
+      subroutine foo
+      end]])])],
           _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]