This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[patch, libtool] Patch libtool.m4 at top-level for autoconf 2.68
- From: "Steve Ellcey " <sellcey at mips dot com>
- To: <binutils at sourceware dot org>
- Date: Tue, 20 Aug 2013 11:18:06 -0700
- Subject: [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
sellcey@mips.com
The GCC mail is at:
http://gcc.gnu.org/ml/gcc-patches/2013-08/msg01138.html
And the patch is:
2013-08-20 Steve Ellcey <sellcey@mips.com>
* libtool.m4 (_LT_SYS_MODULE_PATH_AIX): Put AC_LANG_PROGRAM
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.
m4_defun([_LT_SYS_MODULE_PATH_AIX],
[m4_require([_LT_DECL_SED])dnl
-AC_LINK_IFELSE(AC_LANG_PROGRAM,[
+AC_LINK_IFELSE([AC_LANG_PROGRAM],[
lt_aix_libpath_sed='
/Import File Strings/,/^$/ {
/^0/ {
@@ -4926,7 +4926,16 @@ _LT_EOF
# implicitly export all symbols.
save_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
- AC_LINK_IFELSE(int foo(void) {},
+ AC_LINK_IFELSE(
+ [AC_LANG_SOURCE(
+ [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'
)
LDFLAGS="$save_LDFLAGS"