From MAILER-DAEMON Wed Mar 17 17:38:18 2010
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Ns0wT-0003oS-Ty
	for mharc-libtool-commit@gnu.org; Wed, 17 Mar 2010 17:38:17 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1Ns0wS-0003nM-Dt
	for libtool-commit@gnu.org; Wed, 17 Mar 2010 17:38:16 -0400
Received: from [140.186.70.92] (port=46923 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Ns0wQ-0003lY-L0
	for libtool-commit@gnu.org; Wed, 17 Mar 2010 17:38:15 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1Ns0wO-00057e-8t
	for libtool-commit@gnu.org; Wed, 17 Mar 2010 17:38:14 -0400
Received: from colonialone.fsf.org ([140.186.70.51]:38179
	helo=internal.in.savannah.gnu.org)
	by eggs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1Ns0wO-00057Y-6J
	for libtool-commit@gnu.org; Wed, 17 Mar 2010 17:38:12 -0400
Received: from [10.1.0.108] (helo=vcs-noshell.in.savannah.gnu.org)
	by internal.in.savannah.gnu.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1Ns0wN-0003yj-O5
	for libtool-commit@gnu.org; Wed, 17 Mar 2010 21:38:11 +0000
Received: from pekberg by vcs-noshell.in.savannah.gnu.org with local (Exim
	4.69) (envelope-from <INVALID.NOREPLY@gnu.org>) id 1Ns0wN-0006n2-Fo
	for libtool-commit@gnu.org; Wed, 17 Mar 2010 21:38:11 +0000
From: "Peter Rosin" <peda@lysator.liu.se>
To: libtool-commit@gnu.org
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: d5ca75c82dfb86fb66d69d6ff62ac16a5bdcc8e0
X-Git-Newrev: f21029c498c2cf9f0481a203f91f538f0c290d58
Message-Id: <E1Ns0wN-0006n2-Fo@vcs-noshell.in.savannah.gnu.org>
Date: Wed, 17 Mar 2010 21:38:11 +0000
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Subject: [SCM] GNU Libtool branch, master, updated. v2.2.6-192-gf21029c
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
	tool <libtool-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Mar 2010 21:38:16 -0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Libtool".

The branch, master has been updated
       via  f21029c498c2cf9f0481a203f91f538f0c290d58 (commit)
       via  3f0fa1bae41684e2ec5dba6d4f01c0d35fde7599 (commit)
      from  d5ca75c82dfb86fb66d69d6ff62ac16a5bdcc8e0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit f21029c498c2cf9f0481a203f91f538f0c290d58
Author: Peter Rosin <peda@lysator.liu.se>
Date:   Wed Mar 17 09:01:57 2010 +0100

    Preserve the last error when restoring the error mode.
    
    * libltdl/loaders/loadlibrary.c (wm_open): Don't rely on
    SetThreadErrorMode (or SetErrorMode) to not clobber the last
    error.
    Report by Ralf Wildenhues.
    
    Signed-off-by: Peter Rosin <peda@lysator.liu.se>

commit 3f0fa1bae41684e2ec5dba6d4f01c0d35fde7599
Author: Peter Rosin <peda@lysator.liu.se>
Date:   Wed Mar 17 08:54:16 2010 +0100

    Use Get/SetThreadErrorMode if they are available.
    
    * libltdl/loaders/loadlibrary.c (wrap_geterrormode): Replaced...
    (wrap_getthreaderrormode): ...by this function that checks
    first for GetThreadErrorMode, then GetErrorMode and makes use
    of either of those or...
    (fallback_getthreaderrormode): ...else falls back to this
    replacement function that implements the old workaround, which
    was previously implemented in...
    (fallback_geterrormode): ...this now renamed function.
    (geterrormode): Replaced...
    (getthreaderrormode): ...by this function pointer that points
    at either of wrap_getthreaderrormode, GetThreadErrorMode,
    GetErrorMode or fallback_getthreaderrormode.
    (wrap_setthreaderrormode): New function that checks if
    SetThreadErrorMode is supported by the system and makes use of
    it if it is.
    (fallback_setthreaderrormode): New function that is used
    otherwise that implements the old version using SetErrorMode.
    (setthreaderrormode): New function pointer that points at
    either of wrap_setthreaderrormode, SetThreadErrorMode or
    fallback_setthreaderrormode.
    (vm_open): Adjust to the above.
    
    Signed-off-by: Peter Rosin <peda@lysator.liu.se>

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                     |   31 ++++++++++++++
 libltdl/loaders/loadlibrary.c |   92 ++++++++++++++++++++++++++++++-----------
 2 files changed, 99 insertions(+), 24 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 0e5d92c..5c36a74 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,34 @@
+2010-03-17  Peter Rosin  <peda@lysator.liu.se>
+
+	Preserve the last error when restoring the error mode.
+	* libltdl/loaders/loadlibrary.c (wm_open): Don't rely on
+	SetThreadErrorMode (or SetErrorMode) to not clobber the last
+	error.
+	Report by Ralf Wildenhues.
+
+	Use Get/SetThreadErrorMode if they are available.
+	* libltdl/loaders/loadlibrary.c (wrap_geterrormode): Replaced...
+	(wrap_getthreaderrormode): ...by this function that checks
+	first for GetThreadErrorMode, then GetErrorMode and makes use
+	of either of those or...
+	(fallback_getthreaderrormode): ...else falls back to this
+	replacement function that implements the old workaround, which
+	was previously implemented in...
+	(fallback_geterrormode): ...this now renamed function.
+	(geterrormode): Replaced...
+	(getthreaderrormode): ...by this function pointer that points
+	at either of wrap_getthreaderrormode, GetThreadErrorMode,
+	GetErrorMode or fallback_getthreaderrormode.
+	(wrap_setthreaderrormode): New function that checks if
+	SetThreadErrorMode is supported by the system and makes use of
+	it if it is.
+	(fallback_setthreaderrormode): New function that is used
+	otherwise that implements the old version using SetErrorMode.
+	(setthreaderrormode): New function pointer that points at
+	either of wrap_setthreaderrormode, SetThreadErrorMode or
+	fallback_setthreaderrormode.
+	(vm_open): Adjust to the above.
+
 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
 	Detect Sun compiler suite with 'sun'-prefixed names.
diff --git a/libltdl/loaders/loadlibrary.c b/libltdl/loaders/loadlibrary.c
index 139851a..179c009 100644
--- a/libltdl/loaders/loadlibrary.c
+++ b/libltdl/loaders/loadlibrary.c
@@ -104,12 +104,16 @@ get_vtable (lt_user_data loader_data)
 #define LOADLIB_SETERROR(errcode) LOADLIB__SETERROR (LT__STRERROR (errcode))
 
 static const char *loadlibraryerror (const char *default_errmsg);
-static UINT WINAPI wrap_geterrormode (void);
-static UINT WINAPI fallback_geterrormode (void);
+static DWORD WINAPI wrap_getthreaderrormode (void);
+static DWORD WINAPI fallback_getthreaderrormode (void);
+static BOOL WINAPI wrap_setthreaderrormode (DWORD mode, DWORD *oldmode);
+static BOOL WINAPI fallback_setthreaderrormode (DWORD mode, DWORD *oldmode);
 
-typedef UINT (WINAPI geterrormode_type) (void);
+typedef DWORD (WINAPI getthreaderrormode_type) (void);
+typedef BOOL (WINAPI setthreaderrormode_type) (DWORD, DWORD *);
 
-static geterrormode_type *geterrormode = wrap_geterrormode;
+static getthreaderrormode_type *getthreaderrormode = wrap_getthreaderrormode;
+static setthreaderrormode_type *setthreaderrormode = wrap_setthreaderrormode;
 static char *error_message = 0;
 
 
@@ -187,13 +191,17 @@ vm_open (lt_user_data LT__UNUSED loader_data, const char *filename,
 
   {
     /* Silence dialog from LoadLibrary on some failures. */
-    UINT errormode = geterrormode ();
-    SetErrorMode (errormode | SEM_FAILCRITICALERRORS);
+    DWORD errormode = getthreaderrormode ();
+    DWORD last_error;
+
+    setthreaderrormode (errormode | SEM_FAILCRITICALERRORS, NULL);
 
     module = LoadLibrary (wpath);
 
     /* Restore the error mode. */
-    SetErrorMode (errormode);
+    last_error = GetLastError ();
+    setthreaderrormode (errormode, NULL);
+    SetLastError (last_error);
   }
 
   /* libltdl expects this function to fail if it is unable
@@ -298,28 +306,64 @@ loadlibraryerror (const char *default_errmsg)
   return len ? error_message : default_errmsg;
 }
 
-/* A function called through the geterrormode variable which checks
-   if the system supports GetErrorMode and arranges for it or a
-   fallback implementation to be called directly in the future. The
-   selected version is then called. */
-static UINT WINAPI
-wrap_geterrormode (void)
+/* A function called through the getthreaderrormode variable which checks
+   if the system supports GetThreadErrorMode (or GetErrorMode) and arranges
+   for it or a fallback implementation to be called directly in the future.
+   The selected version is then called. */
+static DWORD WINAPI
+wrap_getthreaderrormode (void)
 {
   HMODULE kernel32 = GetModuleHandleA ("kernel32.dll");
-  geterrormode = (geterrormode_type *) GetProcAddress (kernel32,
-                                                       "GetErrorMode");
-  if (!geterrormode)
-    geterrormode = fallback_geterrormode;
-  return geterrormode ();
+  getthreaderrormode
+    = (getthreaderrormode_type *) GetProcAddress (kernel32,
+						  "GetThreadErrorMode");
+  if (!getthreaderrormode)
+    getthreaderrormode
+      = (getthreaderrormode_type *) GetProcAddress (kernel32,
+						    "GetErrorMode");
+  if (!getthreaderrormode)
+    getthreaderrormode = fallback_getthreaderrormode;
+  return getthreaderrormode ();
 }
 
-/* A function called through the geterrormode variable for cases
-   where the system does not support GetErrorMode */
-static UINT WINAPI
-fallback_geterrormode (void)
+/* A function called through the getthreaderrormode variable for cases
+   where the system does not support GetThreadErrorMode or GetErrorMode */
+static DWORD WINAPI
+fallback_getthreaderrormode (void)
 {
   /* Prior to Windows Vista, the only way to get the current error
      mode was to set a new one. In our case, we are setting a new
-     error mode right after "getting" it, so that's fairly ok. */
-  return SetErrorMode (SEM_FAILCRITICALERRORS);
+     error mode right after "getting" it while ignoring the error
+     mode in effect when setting the new error mode, so that's
+     fairly ok. */
+  return (DWORD) SetErrorMode (SEM_FAILCRITICALERRORS);
+}
+
+/* A function called through the setthreaderrormode variable which checks
+   if the system supports SetThreadErrorMode and arranges for it or a
+   fallback implementation to be called directly in the future.
+   The selected version is then called. */
+static BOOL WINAPI
+wrap_setthreaderrormode (DWORD mode, DWORD *oldmode)
+{
+  HMODULE kernel32 = GetModuleHandleA ("kernel32.dll");
+  setthreaderrormode
+    = (setthreaderrormode_type *) GetProcAddress (kernel32,
+						  "SetThreadErrorMode");
+  if (!setthreaderrormode)
+    setthreaderrormode = fallback_setthreaderrormode;
+  return setthreaderrormode (mode, oldmode);
+}
+
+/* A function called through the setthreaderrormode variable for cases
+   where the system does not support SetThreadErrorMode. */
+static BOOL WINAPI
+fallback_setthreaderrormode (DWORD mode, DWORD *oldmode)
+{
+  /* Prior to Windows 7, there was no way to set the thread local error
+     mode, so set the process global error mode instead. */
+  DWORD old = (DWORD) SetErrorMode (mode);
+  if (oldmode)
+    *oldmode = old;
+  return TRUE;
 }


hooks/post-receive
-- 
GNU Libtool



From MAILER-DAEMON Fri Mar 19 01:41:22 2010
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1NsUxW-00033u-1F
	for mharc-libtool-commit@gnu.org; Fri, 19 Mar 2010 01:41:22 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1NsUxU-00033j-3b
	for libtool-commit@gnu.org; Fri, 19 Mar 2010 01:41:20 -0400
Received: from [140.186.70.92] (port=42528 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1NsUxS-00033N-7n
	for libtool-commit@gnu.org; Fri, 19 Mar 2010 01:41:19 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1NsUxQ-0004TR-RM
	for libtool-commit@gnu.org; Fri, 19 Mar 2010 01:41:18 -0400
Received: from colonialone.fsf.org ([140.186.70.51]:55385
	helo=internal.in.savannah.gnu.org)
	by eggs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1NsUxQ-0004TL-Oq
	for libtool-commit@gnu.org; Fri, 19 Mar 2010 01:41:16 -0400
Received: from [10.1.0.108] (helo=vcs-noshell.in.savannah.gnu.org)
	by internal.in.savannah.gnu.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1NsUxQ-0001uD-5J
	for libtool-commit@gnu.org; Fri, 19 Mar 2010 05:41:16 +0000
Received: from rwild by vcs-noshell.in.savannah.gnu.org with local (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1NsUxQ-0006Yd-2v
	for libtool-commit@gnu.org; Fri, 19 Mar 2010 05:41:16 +0000
From: "Ralf Wildenhues" <Ralf.Wildenhues@gmx.de>
To: libtool-commit@gnu.org
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: f21029c498c2cf9f0481a203f91f538f0c290d58
X-Git-Newrev: 74c8993c178a1386ea5e2363a01d919738402f30
Message-Id: <E1NsUxQ-0006Yd-2v@vcs-noshell.in.savannah.gnu.org>
Date: Fri, 19 Mar 2010 05:41:16 +0000
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Subject: [SCM] GNU Libtool branch, master, updated. v2.2.6-194-g74c8993
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
	tool <libtool-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 19 Mar 2010 05:41:20 -0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Libtool".

The branch, master has been updated
       via  74c8993c178a1386ea5e2363a01d919738402f30 (commit)
       via  7877d1d13f5f2f67b3d062603cb82791fc479257 (commit)
      from  f21029c498c2cf9f0481a203f91f538f0c290d58 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 74c8993c178a1386ea5e2363a01d919738402f30
Author: Chris Demetriou <cgd@google.com>
Date:   Fri Mar 19 06:26:03 2010 +0100

    Sort output of 'find' to enable deterministic builds.
    
    * libltdl/config/ltmain.m4sh (func_extract_archives): Sort
    output of 'find'.
    * libltdl/m4/libtool.m4 (_LT_LANG_CXX_CONFIG): Likewise.
    * THANKS: Update.
    
    Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

commit 7877d1d13f5f2f67b3d062603cb82791fc479257
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date:   Wed Mar 17 22:44:25 2010 +0100

    Unconditionally normalize LC_ALL, LANGUAGE in libtool script.
    
    * libltdl/config/ltmain.m4sh: Unconditionally set LC_ALL and
    LANGUAGE to 'C', to avoid semantic differences on MinGW under
    Chines locale.  SCO issues with e.g. LANG=C are not known to
    be relevant today any more.
    Report by Pete Batard <pbatard@gmail.com> and Xiaofan Chen
    <xiaofanc@gmail.com>.
    
    Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                  |   18 ++++++++++++++++++
 THANKS                     |    1 +
 libltdl/config/ltmain.m4sh |   10 +++++-----
 libltdl/m4/libtool.m4      |    8 ++++----
 4 files changed, 28 insertions(+), 9 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 5c36a74..744157f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,21 @@
+2010-03-19  Chris Demetriou  <cgd@google.com>
+
+	Sort output of 'find' to enable deterministic builds.
+	* libltdl/config/ltmain.m4sh (func_extract_archives): Sort
+	output of 'find'.
+	* libltdl/m4/libtool.m4 (_LT_LANG_CXX_CONFIG): Likewise.
+	* THANKS: Update.
+
+2010-03-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+	Unconditionally normalize LC_ALL, LANGUAGE in libtool script.
+	* libltdl/config/ltmain.m4sh: Unconditionally set LC_ALL and
+	LANGUAGE to 'C', to avoid semantic differences on MinGW under
+	Chines locale.  SCO issues with e.g. LANG=C are not known to
+	be relevant today any more.
+	Report by Pete Batard <pbatard@gmail.com> and Xiaofan Chen
+	<xiaofanc@gmail.com>.
+
 2010-03-17  Peter Rosin  <peda@lysator.liu.se>
 
 	Preserve the last error when restoring the error mode.
diff --git a/THANKS b/THANKS
index 7ff58a8..529a699 100644
--- a/THANKS
+++ b/THANKS
@@ -79,6 +79,7 @@
   Bruno Haible			haible@ilog.fr
   Camilo La Rota		camilo.larota@ens-lyon.fr
   Carl D. Roth			roth@cse.ucsc.edu
+  Chris Demetriou		cgd@google.com
   Chris P. Ross			cross@eng.us.uu.net
   Christian Biesinger		cbiesinger@web.de
   Christian Rössel		christian.roessel@gmx.de
diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh
index 8fcedc9..435f1c4 100644
--- a/libltdl/config/ltmain.m4sh
+++ b/libltdl/config/ltmain.m4sh
@@ -106,9 +106,6 @@ _LTECHO_EOF'
 }
 
 # NLS nuisances: We save the old values to restore during execute mode.
-# Only set LANG and LC_ALL to C if already set.
-# These must not be set unconditionally because not all systems understand
-# e.g. LANG=C (notably SCO).
 lt_user_locale=
 lt_safe_locale=
 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
@@ -121,6 +118,9 @@ do
 	  lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
 	fi"
 done
+LC_ALL=C
+LANGUAGE=C
+export LANGUAGE LC_ALL
 
 $lt_unset CDPATH
 
@@ -2311,7 +2311,7 @@ func_extract_archives ()
 	    darwin_file=
 	    darwin_files=
 	    for darwin_file in $darwin_filelist; do
-	      darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
+	      darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
 	      $LIPO -create -output "$darwin_file" $darwin_files
 	    done # $darwin_filelist
 	    $RM -rf unfat-$$
@@ -2326,7 +2326,7 @@ func_extract_archives ()
         func_extract_an_archive "$my_xdir" "$my_xabs"
 	;;
       esac
-      my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
+      my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP`
     done
 
     func_extract_archives_result="$my_oldobjs"
diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4
index 677505d..d74038f 100644
--- a/libltdl/m4/libtool.m4
+++ b/libltdl/m4/libtool.m4
@@ -6001,20 +6001,20 @@ if test "$_lt_caught_CXX_error" != yes; then
 	      _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
 		rm -rf $tpldir~
 		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
-		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
+		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
 	      _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
 		rm -rf $tpldir~
 		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
-		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
+		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
 		$RANLIB $oldlib'
 	      _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
 		rm -rf $tpldir~
 		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
-		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
+		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 	      _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
 		rm -rf $tpldir~
 		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
-		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
+		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 	      ;;
 	    *) # Version 6 and above use weak symbols
 	      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'


hooks/post-receive
-- 
GNU Libtool



From MAILER-DAEMON Sun Mar 28 16:23:41 2010
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Nvz1J-0004YV-Ek
	for mharc-libtool-commit@gnu.org; Sun, 28 Mar 2010 16:23:41 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1Nvz1G-0004Y3-R7
	for libtool-commit@gnu.org; Sun, 28 Mar 2010 16:23:38 -0400
Received: from [140.186.70.92] (port=55490 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Nvz1D-0004Xl-2c
	for libtool-commit@gnu.org; Sun, 28 Mar 2010 16:23:38 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1Nvz19-0006iN-NF
	for libtool-commit@gnu.org; Sun, 28 Mar 2010 16:23:34 -0400
Received: from colonialone.fsf.org ([140.186.70.51]:39463
	helo=internal.in.savannah.gnu.org)
	by eggs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1Nvz19-0006iF-KN
	for libtool-commit@gnu.org; Sun, 28 Mar 2010 16:23:31 -0400
Received: from [10.1.0.108] (helo=vcs-noshell.in.savannah.gnu.org)
	by internal.in.savannah.gnu.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1Nvz19-00017y-42
	for libtool-commit@gnu.org; Sun, 28 Mar 2010 20:23:31 +0000
Received: from rwild by vcs-noshell.in.savannah.gnu.org with local (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1Nvz18-0008UP-Sb
	for libtool-commit@gnu.org; Sun, 28 Mar 2010 20:23:31 +0000
From: "Ralf Wildenhues" <Ralf.Wildenhues@gmx.de>
To: libtool-commit@gnu.org
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 74c8993c178a1386ea5e2363a01d919738402f30
X-Git-Newrev: 03feff471901aeaac97b36964f88ed4d694dff99
Message-Id: <E1Nvz18-0008UP-Sb@vcs-noshell.in.savannah.gnu.org>
Date: Sun, 28 Mar 2010 20:23:30 +0000
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Subject: [SCM] GNU Libtool branch, master, updated. v2.2.6-199-g03feff4
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
	tool <libtool-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Mar 2010 20:23:39 -0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Libtool".

The branch, master has been updated
       via  03feff471901aeaac97b36964f88ed4d694dff99 (commit)
       via  0238e60a634444250411db0151e4ab5e82e26daa (commit)
       via  55b7842849ac27bc01f366459acebdfa2c160b15 (commit)
       via  c334a37bc67c2b4e21372748542f54ed01464196 (commit)
       via  57c342937d770ae04df8eba88aa098cf2a96a0ec (commit)
      from  74c8993c178a1386ea5e2363a01d919738402f30 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 03feff471901aeaac97b36964f88ed4d694dff99
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date:   Sun Mar 28 19:14:05 2010 +0200

    Fix preloader symbol list declaration in libltdl.
    
    * libltdl/ltdl.c (preloaded_symbols): Fix declaration to include
    array brackets.
    (lt_dlinit): Do not take address of preloaded_symbols.
    
    Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

commit 0238e60a634444250411db0151e4ab5e82e26daa
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date:   Sun Mar 28 18:11:44 2010 +0200

    Fix typo in libtool --help output.
    
    * libltdl/config/ltmain.m4sh (func_mode_help): Fix typo in help
    output.
    
    Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

commit 55b7842849ac27bc01f366459acebdfa2c160b15
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date:   Sun Mar 28 18:03:09 2010 +0200

    Fix a couple of documentation errors.
    
    * doc/libtool.texi (Autoconf macros): Improve hyphenation.
    (Using libltdl): libltdl uses the Lesser General Public License,
    not the Library General Public License.
    
    Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

commit c334a37bc67c2b4e21372748542f54ed01464196
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date:   Sun Mar 28 18:02:22 2010 +0200

    Do not use @sc nor @acronym in the manual.
    
    * doc/libtool.texi: Remove all usage of @sc.
    
    Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

commit 57c342937d770ae04df8eba88aa098cf2a96a0ec
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date:   Sun Mar 28 18:00:03 2010 +0200

    Fix ChangeLog entry.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                  |   21 ++++++-
 doc/libtool.texi           |  144 ++++++++++++++++++++++----------------------
 libltdl/config/ltmain.m4sh |    4 +-
 libltdl/ltdl.c             |    4 +-
 4 files changed, 96 insertions(+), 77 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 744157f..9fa30c8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,22 @@
+2010-03-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+	Fix preloader symbol list declaration in libltdl.
+	* libltdl/ltdl.c (preloaded_symbols): Fix declaration to include
+	array brackets.
+	(lt_dlinit): Do not take address of preloaded_symbols.
+
+	Fix typo in libtool --help output.
+	* libltdl/config/ltmain.m4sh (func_mode_help): Fix typo in help
+	output.
+
+	Fix a couple of documentation errors.
+	* doc/libtool.texi (Autoconf macros): Improve hyphenation.
+	(Using libltdl): libltdl uses the Lesser General Public License,
+	not the Library General Public License.
+
+	Do not use @sc nor @acronym in the manual.
+	* doc/libtool.texi: Remove all usage of @sc.
+
 2010-03-19  Chris Demetriou  <cgd@google.com>
 
 	Sort output of 'find' to enable deterministic builds.
@@ -57,7 +76,7 @@
 	Report by Vadim Zeitlin.
 
 2010-02-28  Pierre Ossman  <ossman@ossman.lkpg.cendio.se>  (tiny change)
-            Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+	    Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
 
 	Fix deplibs check fallback for 64-bit Windows and Windows CE.
 	* libltdl/m4/libtool.m4 (_LT_CHECK_MAGIC_METHOD): Accept file formats
diff --git a/doc/libtool.texi b/doc/libtool.texi
index 5f0d35c..47a22fa 100644
--- a/doc/libtool.texi
+++ b/doc/libtool.texi
@@ -56,11 +56,11 @@ identical to this one except for the removal of this paragraph
 Copyright @copyright{} 2009 Free Software Foundation, Inc.
 
 Permission is granted to copy, distribute and/or modify this document
-under the terms of the @sc{gnu} Free Documentation License, Version 1.3
+under the terms of the GNU Free Documentation License, Version 1.3
 or any later version published by the Free Software Foundation;
 with no Invariant Sections, with no Front-Cover Texts,
 and with no Back-Cover Texts.  A copy of the license is included in
-the section entitled "@sc{gnu} Free Documentation License".
+the section entitled "GNU Free Documentation License".
 
 @end titlepage
 
@@ -75,12 +75,12 @@ the section entitled "@sc{gnu} Free Documentation License".
 @comment  node-name,  next,  previous,  up
 @top Shared library support for GNU
 
-This file documents @sc{gnu} Libtool, a script that allows package developers
+This file documents GNU Libtool, a script that allows package developers
 to provide generic shared library support.  This edition documents
 version @value{VERSION}.
 
 @xref{Reporting bugs}, for information on how to report problems with
-@sc{gnu} Libtool.
+GNU Libtool.
 
 @menu
 * Introduction::                What the heck is libtool?
@@ -231,13 +231,13 @@ for each platform on which his package ran.  He also had to design a
 configuration interface so that the package installer could choose what
 sort of libraries were built.
 
-@sc{gnu} Libtool simplifies the developer's job by encapsulating both the
+GNU Libtool simplifies the developer's job by encapsulating both the
 platform-specific dependencies, and the user interface, in a single
-script.  @sc{gnu} Libtool is designed so that the complete functionality of
+script.  GNU Libtool is designed so that the complete functionality of
 each host type is available via a generic interface, but nasty quirks
 are hidden from the programmer.
 
-@sc{gnu} Libtool's consistent interface is reassuring@dots{} users don't need
+GNU Libtool's consistent interface is reassuring@dots{} users don't need
 to read obscure documentation in order to have their favorite source
 package build shared libraries.  They just run your package
 @code{configure} script (or equivalent), and libtool does all the dirty
@@ -267,18 +267,18 @@ or want to write code to extend libtool in a consistent way.
 
 @cindex motivation for writing libtool
 @cindex design philosophy
-Since early 1995, several different @sc{gnu} developers have recognized the
+Since early 1995, several different GNU developers have recognized the
 importance of having shared library support for their packages.  The
 primary motivation for such a change is to encourage modularity and
-reuse of code (both conceptually and physically) in @sc{gnu} programs.
+reuse of code (both conceptually and physically) in GNU programs.
 
-Such a demand means that the way libraries are built in @sc{gnu} packages
+Such a demand means that the way libraries are built in GNU packages
 needs to be general, to allow for any library type the package installer
 might want.  The problem is compounded by the absence of a standard
 procedure for creating shared libraries on different platforms.
 
 The following sections outline the major issues facing shared library
-support in @sc{gnu}, and how shared library support could be standardized
+support in GNU, and how shared library support could be standardized
 with libtool.
 
 @cindex specifications for libtool
@@ -291,13 +291,13 @@ system:
 The system must be as elegant as possible.
 
 @item
-The system must be fully integrated with the @sc{gnu} Autoconf and Automake
-utilities, so that it will be easy for @sc{gnu} maintainers to use.  However,
+The system must be fully integrated with the GNU Autoconf and Automake
+utilities, so that it will be easy for GNU maintainers to use.  However,
 the system must not require these tools, so that it can be used by
-non-@sc{gnu} packages.
+non-GNU packages.
 
 @item
-Portability to other (non-@sc{gnu}) architectures and tools is desirable.
+Portability to other (non-GNU) architectures and tools is desirable.
 @end enumerate
 
 @node Issues
@@ -388,7 +388,7 @@ It isolates the problems and inconsistencies in library building that
 plague @file{Makefile} writers by wrapping the compiler suite on
 different platforms with a consistent, powerful interface.
 
-With luck, libtool will be useful to and used by the @sc{gnu} community, and
+With luck, libtool will be useful to and used by the GNU community, and
 that the lessons that were learned in writing it will be taken up by
 designers of future library systems.
 
@@ -1113,9 +1113,9 @@ listing all the object files every time.
 
 If you just want to link this convenience library into programs, then
 you could just ignore libtool entirely, and use the old @command{ar} and
-@command{ranlib} commands (or the corresponding @sc{gnu} Automake
+@command{ranlib} commands (or the corresponding GNU Automake
 @samp{_LIBRARIES} rules).  You can even install a convenience library
-using @sc{gnu} Libtool, though you probably don't want to and hence @sc{gnu}
+using GNU Libtool, though you probably don't want to and hence GNU
 Automake doesn't allow you to do so.
 
 @example
@@ -1147,13 +1147,13 @@ libraries.  But be careful not to link a single convenience library,
 directly or indirectly, into a single program or library, otherwise you
 may get errors about symbol redefinitions.
 
-The key is remembering that a convenience library contains @sc{pic}
-objects, and can be linked where a list of @sc{pic} objects makes sense;
+The key is remembering that a convenience library contains PIC
+objects, and can be linked where a list of PIC objects makes sense;
 i.e.@: into a shared library.  A static convenience library contains
-non-@sc{pic} objects, so can be linked into an old static library, or
+non-PIC objects, so can be linked into an old static library, or
 a program.
 
-When @sc{gnu} Automake is used, you should use @code{noinst_LTLIBRARIES}
+When GNU Automake is used, you should use @code{noinst_LTLIBRARIES}
 instead of @code{lib_LTLIBRARIES} for convenience libraries, so that
 the @option{-rpath} option is not passed when they are linked.
 
@@ -1820,12 +1820,12 @@ path to particular system commands:
 @defmac LT_PATH_LD
 Add a @option{--with-gnu-ld} option to @file{configure}.  Try to find
 the path to the linker used by @samp{$CC}, and whether it is the
-@sc{gnu} linker.  The result is stored in the shell variable
+GNU linker.  The result is stored in the shell variable
 @samp{$LD}, which is @code{AC_SUBST}ed.
 @end defmac
 
 @defmac LT_PATH_NM
-Try to find a @sc{bsd} compatible @command{nm} or a @sc{ms} compatible
+Try to find a BSD-compatible @command{nm} or a MS-compatible
 @command{dumpbin} command on this machine.  The result is stored in the
 shell variable @samp{$NM}, which is @code{AC_SUBST}ed.
 @end defmac
@@ -1843,7 +1843,7 @@ are stored in the shell variables @samp{$enable_dlopen_self} and
 
 @defmac LT_SYS_DLOPEN_DEPLIBS
 Define the preprocessor symbol @samp{LTDL_DLOPEN_DEPLIBS} if the
-@sc{os} needs help to load dependent libraries for @samp{dlopen} (or
+OS needs help to load dependent libraries for @samp{dlopen} (or
 equivalent).
 @end defmac
 
@@ -1887,7 +1887,7 @@ package you need to do one of the following:
 
 @enumerate 1
 @item
-Download the latest Automake distribution from your nearest @sc{gnu}
+Download the latest Automake distribution from your nearest GNU
 mirror, install it, and start using it.
 
 @item
@@ -1912,7 +1912,7 @@ libtool distribution's @file{demo} subdirectory.
 First, to link a program against a libtool library, just use the
 @samp{program_LDADD}@footnote{@c
 @c
-Since @sc{gnu} Automake 1.5, the flags @option{-dlopen}
+Since GNU Automake 1.5, the flags @option{-dlopen}
 or @option{-dlpreopen} (@pxref{Link mode}) can be employed with the
 @var{program_LDADD} variable.  Unfortunately, older releases didn't
 accept these flags, so if you are stuck with an ancient Automake, we
@@ -1975,7 +1975,7 @@ However, when you distribute libtool with your own packages
 operating system that are used to compile your package.
 
 For this reason, libtool must be @dfn{configured} before it can be
-used.  This idea should be familiar to anybody who has used a @sc{gnu}
+used.  This idea should be familiar to anybody who has used a GNU
 @code{configure} script.  @code{configure} runs a number of tests for
 system features, then generates the @file{Makefile}s (and possibly a
 @file{config.h} header file), after which you can run @code{make} and
@@ -1992,7 +1992,7 @@ generate a libtool script for the installer's host machine.
 @node LT_INIT
 @subsection The @code{LT_INIT} macro
 
-If you are using @sc{gnu} Autoconf (or Automake), you should add a call to
+If you are using GNU Autoconf (or Automake), you should add a call to
 @code{LT_INIT} to your @file{configure.ac} file.  This macro
 adds many new tests to the @code{configure} script so that the generated
 libtool script will understand the characteristics of the host.  It's the
@@ -2073,7 +2073,7 @@ libtool: $(LIBTOOL_DEPS)
         $(SHELL) ./config.status libtool
 @end example
 
-If you are using @sc{gnu} Automake, you can omit the assignment, as Automake
+If you are using GNU Automake, you can omit the assignment, as Automake
 will take care of it.  You'll obviously have to create some dependency
 on @file{libtool}.
 
@@ -2135,12 +2135,12 @@ specifying @option{--enable-static} to @command{configure}.
 
 @item pic-only
 Change the default behaviour for @command{libtool} to try to use only
-@sc{pic} objects.  The user may still override this default by specifying
+PIC objects.  The user may still override this default by specifying
 @option{--without-pic} to @command{configure}.
 
 @item no-pic
 Change the default behaviour of @command{libtool} to try to use only
-non-@sc{pic} objects.  The user may still override this default by
+non-PIC objects.  The user may still override this default by
 specifying @option{--with-pic} to @command{configure}.
 
 @end table
@@ -2493,7 +2493,7 @@ include libltdl/Makefile.inc
 
 @item --quiet
 @itemx -q
-Work silently.  @samp{libtoolize --quiet} is used by @sc{gnu} Automake
+Work silently.  @samp{libtoolize --quiet} is used by GNU Automake
 to add libtool files to your package if necessary.
 
 @item --recursive
@@ -2653,12 +2653,12 @@ you can see how libtool behaves on static-only platforms.
 
 You may want to put a small note in your package @file{README} to let
 other developers know that @option{--disable-shared} can save them time.
-The following example note is taken from the GIMP@footnote{@sc{gnu} Image
+The following example note is taken from the GIMP@footnote{GNU Image
 Manipulation Program, for those who haven't taken the plunge.  See
 @url{http://www.gimp.org/}.} distribution @file{README}:
 
 @example
-The GIMP uses @sc{gnu} Libtool in order to build shared libraries on a
+The GIMP uses GNU Libtool in order to build shared libraries on a
 variety of systems.  While this is very nice for making usable
 binaries, it can be a pain when trying to debug a program.  For that
 reason, compilation of shared libraries can be turned off by
@@ -2966,7 +2966,7 @@ may also be replaced by other libraries using it.
 Often, people want to encode the name of the package release into the
 shared library so that it is obvious to the user which package their
 programs are linked against.  This convention is used especially on
-@sc{gnu}/Linux:
+GNU/Linux:
 
 @example
 trick$ @kbd{ls /usr/lib/libbfd*}
@@ -2988,7 +2988,7 @@ So, in order to accommodate both views, you can use the @option{-release}
 flag in order to set release information for libraries for which you do not
 want to use @option{-version-info}.  For the @file{libbfd} example, the
 next release that uses libtool should be built with @samp{-release
-2.9.0}, which will produce the following files on @sc{gnu}/Linux:
+2.9.0}, which will produce the following files on GNU/Linux:
 
 @example
 trick$ @kbd{ls /usr/lib/libbfd*}
@@ -3506,7 +3506,7 @@ provide only static linkage can't even load the intrinsic interpreter
 methods.  Not so!  We can statically link those methods by
 @strong{dlpreopening} them.
 
-Unfortunately, since platforms such as @sc{aix} and cygwin require
+Unfortunately, since platforms such as AIX and cygwin require
 that all library symbols must be resolved at compile time, the
 interpreter maintainers will need to provide a library to both its own
 dlpreopened modules, and third-party modules loaded by dlopen.  In
@@ -3672,7 +3672,7 @@ hiding the various difficulties of dlopening libraries from programmers.
 It consists of a few headers and small C source files that can be
 distributed with applications that need dlopening functionality.  On
 some platforms, whose dynamic linkers are too limited for a simple
-implementation of @file{libltdl} services, it requires @sc{gnu} DLD, or it
+implementation of @file{libltdl} services, it requires GNU DLD, or it
 will only emulate dynamic linking with libtool's dlpreopening mechanism.
 
 @noindent
@@ -3690,19 +3690,19 @@ libltdl supports currently the following dynamic linking mechanisms:
 @item
 @code{NSAddImage} or @code{NSLinkModule} (Darwin and Mac OS X)
 @item
-@sc{gnu} DLD (emulates dynamic linking for static libraries)
+GNU DLD (emulates dynamic linking for static libraries)
 @item
 libtool's dlpreopen (see @pxref{Dlpreopening})
 @end itemize
 
 @noindent
-libltdl is licensed under the terms of the @sc{gnu} Library General
+libltdl is licensed under the terms of the GNU Lesser General
 Public License, with the following exception:
 
 @quotation
-As a special exception to the @sc{gnu} Lesser General Public License,
+As a special exception to the GNU Lesser General Public License,
 if you distribute this file as part of a program or library that
-is built using @sc{gnu} Libtool, you may include it under the same
+is built using GNU Libtool, you may include it under the same
 distribution terms that you use for the rest of that program.
 @end quotation
 
@@ -3731,7 +3731,7 @@ To use libltdl in your program you have to include the header file @file{ltdl.h}
 
 @noindent
 The early releases of libltdl used some symbols that violated the
-@sc{posix} namespace conventions.  These symbols are now deprecated,
+POSIX namespace conventions.  These symbols are now deprecated,
 and have been replaced by those described here.  If you have code that
 relies on the old deprecated symbol names, defining
 @samp{LT_NON_POSIX_NAMESPACE} before you include @file{ltdl.h} provides
@@ -3743,7 +3743,7 @@ your application in order to use this version of libltdl.
 Note that libltdl is not well tested in a multithreaded environment,
 though the intention is that it should work (@pxref{Thread Safety
 in libltdl, , Using libltdl in a multi threaded environment}).  It was
-reported that @sc{gnu}/Linux's glibc 2.0's @code{dlopen} with
+reported that GNU/Linux's glibc 2.0's @code{dlopen} with
 @samp{RTLD_LAZY} (which libltdl uses by default) is not thread-safe,
 but this problem is supposed to be fixed in glibc 2.1.  On the other
 hand, @samp{RTLD_NOW} was reported to introduce problems in
@@ -3876,7 +3876,7 @@ module loader.  The @var{advise} parameter is opaque and can only be
 accessed with the functions documented below.
 
 Note that this function does not change the content of @var{advise}, so
-unlike the other calls in this @sc{api} takes a direct @code{lt_dladvise}
+unlike the other calls in this API takes a direct @code{lt_dladvise}
 type, and not a pointer to the same.
 @end deftypefun
 
@@ -3936,7 +3936,7 @@ unresolved symbols in subsequently loaded modules.
 If neither the @code{symglobal} nor the @code{symlocal} hints are set,
 or if a module is loaded without using the @code{lt_dlopenadvise} call
 in any case, then the visibility of the module's symbols will be as per
-the default for the underlying module loader and @sc{os}.  Even if a
+the default for the underlying module loader and OS.  Even if a
 suitable hint is passed, not all loaders are able to act upon it in
 which case @code{lt_dlgetinfo} will reveal whether the hint was actually
 followed.
@@ -3954,7 +3954,7 @@ visible to subsequently loaded modules.
 If neither the @code{symglobal} nor the @code{symlocal} hints are set,
 or if a module is loaded without using the @code{lt_dlopenadvise} call
 in any case, then the visibility of the module's symbols will be as per
-the default for the underlying module loader and @sc{os}.  Even if a
+the default for the underlying module loader and OS.  Even if a
 suitable hint is passed, not all loaders are able to act upon it in
 which case @code{lt_dlgetinfo} will reveal whether the hint was actually
 followed.
@@ -4139,13 +4139,13 @@ If you wish to use libltdl in a multithreaded environment, then you
 must mutex lock around libltdl calls, since they may in turn be calling
 non-thread-safe system calls on some target hosts.
 
-Some old releases of libtool provided a mutex locking @sc{api} that
+Some old releases of libtool provided a mutex locking API that
 was unusable with POSIX threads, so callers were forced to lock around
-all libltdl @sc{api} calls anyway.  That mutex locking @sc{api} was
+all libltdl API calls anyway.  That mutex locking API was
 next to useless, and is not present in current releases.
 
 Some future release of libtool may provide a new POSIX thread
-compliant mutex locking @sc{api}.
+compliant mutex locking API.
 
 @node User defined module data
 @section Data associated with loaded modules
@@ -4269,7 +4269,7 @@ if no such named module has been loaded by @var{iface}.
 However, you might still need to maintain your own list of loaded
 module handles (in parallel with the list maintained inside libltdl)
 if there were any other data that your application wanted to associate
-with each open module.  Instead, you can use the following @sc{api}
+with each open module.  Instead, you can use the following API
 calls to do that for you.  You must first obtain a unique interface id
 from libltdl as described above, and subsequently always use it to
 retrieve the data you stored earlier.  This allows different libraries
@@ -4309,12 +4309,12 @@ Return the address of the data associated with @var{key} and
 @var{handle}, or else @code{NULL} if there is none.
 @end deftypefun
 
-Old versions of libltdl also provided a simpler, but similar, @sc{api}
+Old versions of libltdl also provided a simpler, but similar, API
 based around @code{lt_dlcaller_id}.  Unfortunately, it had no
 provision for detecting whether a module belonged to a particular
 interface as libltdl didn't support multiple loaders in the same
-address space at that time.  Those @sc{api}s are no longer supported
-as there would be no way to stop clients of the old @sc{api}s from
+address space at that time.  Those APIs are no longer supported
+as there would be no way to stop clients of the old APIs from
 seeing (and accidentally altering) modules loaded by other libraries.
 
 
@@ -4344,7 +4344,7 @@ already in use by libltdl's builtin loaders:
 @item "dlopen"
 The system dynamic library loader, if one exists.
 @item "dld"
-The @sc{gnu} dld loader, if @file{libdld} was installed when libltdl was
+The GNU dld loader, if @file{libdld} was installed when libltdl was
 built.
 @item "dlpreload"
 The loader for @code{lt_dlopen}ing of preloaded static modules.
@@ -4372,7 +4372,7 @@ level types.
 
 @deftypefn {Type} {struct} lt_user_dlloader @{@w{const char *@var{sym_prefix};} @w{lt_module_open *@var{module_open};} @w{lt_module_close *@var{module_close};} @w{lt_find_sym *@var{find_sym};} @w{lt_dlloader_exit *@var{dlloader_exit};} @}
 If you want to define a new way to open dynamic modules, and have the
-@code{lt_dlopen} @sc{api} use it, you need to instantiate one of these
+@code{lt_dlopen} API use it, you need to instantiate one of these
 structures and pass it to @code{lt_dlloader_add}.  You can pass whatever
 you like in the @var{dlloader_data} field, and it will be passed back as
 the value of the first parameter to each of the functions specified in
@@ -4501,7 +4501,7 @@ Return the first loader with a matching @var{loader_name} identifier, or else
 
 The identifiers that may be used by libltdl itself, if the host
 architecture supports them are @dfn{dlopen}@footnote{This is used for
-the host dependent module loading @sc{api} -- @code{shl_load} and
+the host dependent module loading API -- @code{shl_load} and
 @code{LoadLibrary} for example}, @dfn{dld} and @dfn{dlpreload}.
 
 @example
@@ -5048,8 +5048,8 @@ shared libraries (@option{--disable-static}).
 @file{demo-nofast.test} configures @file{demo/libtool} to
 disable the fast-install mode (@option{--enable-fast-install=no}).
 @file{demo-pic.test} configures @file{demo/libtool} to
-prefer building @sc{pic} code (@option{--with-pic}), @file{demo-nopic.test}
-to prefer non-@sc{pic} code (@option{--without-pic}).
+prefer building PIC code (@option{--with-pic}), @file{demo-nopic.test}
+to prefer non-PIC code (@option{--without-pic}).
 
 @item demo-deplibs.test
 @pindex demo-deplibs.test
@@ -5449,7 +5449,7 @@ can make changes to the libtool configuration process without affecting
 other systems.
 
 @item man pages for @command{ld} and @command{cc}
-These generally describe what flags are used to generate @sc{pic}, to create
+These generally describe what flags are used to generate PIC, to create
 shared libraries, and to link against only static libraries.  You may
 need to follow some cross references to find the information that is
 required.
@@ -5571,7 +5571,7 @@ platforms where it claims to support shared libraries:
 Note: The vendor-distributed HP-UX @command{sed}(1) programs are horribly
 broken, and cannot handle libtool's requirements, so users may report
 unusual problems.  There is no workaround except to install a working
-@command{sed} (such as @sc{gnu} @command{sed}) on these systems.
+@command{sed} (such as GNU @command{sed}) on these systems.
 
 Note: The vendor-distributed NCR MP-RAS @command{cc} programs emits
 copyright on standard error that confuse tests on size of
@@ -5633,8 +5633,8 @@ IBM has online documentation at
 @subsection Compilers
 
 The only compiler characteristics that affect libtool are the flags
-needed (if any) to generate @sc{pic} objects.  In general, if a C compiler
-supports certain @sc{pic} flags, then any derivative compilers support the
+needed (if any) to generate PIC objects.  In general, if a C compiler
+supports certain PIC flags, then any derivative compilers support the
 same flags.  Until there are some noteworthy exceptions to this rule,
 this section will document only C compilers.
 
@@ -5644,8 +5644,8 @@ of the platform:
 @table @code
 @item gcc
 
-This is the @sc{gnu} C compiler, which is also the system compiler for many
-free operating systems (FreeBSD, @sc{gnu}/Hurd, @sc{gnu}/Linux, Lites, NetBSD, and
+This is the GNU C compiler, which is also the system compiler for many
+free operating systems (FreeBSD, GNU/Hurd, GNU/Linux, Lites, NetBSD, and
 OpenBSD, to name a few).
 
 The @option{-fpic} or @option{-fPIC} flags can be used to generate
@@ -5663,26 +5663,26 @@ they are bundled with:
 @table @code
 @item aix3*
 @itemx aix4*
-Most AIX compilers have no @sc{pic} flags, since AIX (with the exception of
+Most AIX compilers have no PIC flags, since AIX (with the exception of
 AIX for IA-64) runs on PowerPC and RS/6000 chips. @footnote{All code compiled
 for the PowerPC and RS/6000 chips (@code{powerpc-*-*}, @code{powerpcle-*-*},
 and @code{rs6000-*-*}) is position-independent, regardless of the operating
 system or compiler suite.  So, ``regular objects'' can be used to build
-shared libraries on these systems and no special @sc{pic} compiler flags are
+shared libraries on these systems and no special PIC compiler flags are
 required.}
 
 @item hpux10*
-Use @samp{+Z} to generate @sc{pic}.
+Use @samp{+Z} to generate PIC.
 
 @item osf3*
-Digital/UNIX 3.x does not have @sc{pic} flags, at least not on the PowerPC
+Digital/UNIX 3.x does not have PIC flags, at least not on the PowerPC
 platform.
 
 @item solaris2*
-Use @option{-KPIC} to generate @sc{pic}.
+Use @option{-KPIC} to generate PIC.
 
 @item sunos4*
-Use @option{-PIC} to generate @sc{pic}.
+Use @option{-PIC} to generate PIC.
 @end table
 
 @node Reloadable objects
diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh
index 435f1c4..e70a318 100644
--- a/libltdl/config/ltmain.m4sh
+++ b/libltdl/config/ltmain.m4sh
@@ -1052,8 +1052,8 @@ This mode accepts the following additional options:
 
   -o OUTPUT-FILE    set the output file name to OUTPUT-FILE
   -no-suppress      do not suppress compiler output for multiple passes
-  -prefer-pic       try to building PIC objects only
-  -prefer-non-pic   try to building non-PIC objects only
+  -prefer-pic       try to build PIC objects only
+  -prefer-non-pic   try to build non-PIC objects only
   -shared           do not build a \`.o' file suitable for static linking
   -static           only build a \`.o' file suitable for static linking
   -Wc,FLAG          pass FLAG directly to the compiler
diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c
index 1fe272f..4e1a402 100644
--- a/libltdl/ltdl.c
+++ b/libltdl/ltdl.c
@@ -208,7 +208,7 @@ LT_BEGIN_C_DECLS
 LT_SCOPE const lt_dlvtable *	get_vtable (lt_user_data data);
 LT_END_C_DECLS
 #ifdef HAVE_LIBDLLOADER
-extern lt_dlsymlist		preloaded_symbols;
+extern lt_dlsymlist		preloaded_symbols[];
 #endif
 
 /* Initialize libltdl. */
@@ -234,7 +234,7 @@ lt_dlinit (void)
 #ifdef HAVE_LIBDLLOADER
       if (!errors)
 	{
-	  errors += lt_dlpreload (&preloaded_symbols);
+	  errors += lt_dlpreload (preloaded_symbols);
 	}
 
       if (!errors)


hooks/post-receive
-- 
GNU Libtool



From MAILER-DAEMON Wed Mar 31 16:00:00 2010
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Nx452-0000Qj-Bl
	for mharc-libtool-commit@gnu.org; Wed, 31 Mar 2010 16:00:00 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1Nx450-0000Oi-Jg
	for libtool-commit@gnu.org; Wed, 31 Mar 2010 15:59:58 -0400
Received: from [140.186.70.92] (port=60722 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Nx44y-0000LZ-4z
	for libtool-commit@gnu.org; Wed, 31 Mar 2010 15:59:58 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1Nx44w-0005KT-Mf
	for libtool-commit@gnu.org; Wed, 31 Mar 2010 15:59:55 -0400
Received: from colonialone.fsf.org ([140.186.70.51]:40989
	helo=internal.in.savannah.gnu.org)
	by eggs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1Nx44w-0005KF-Io
	for libtool-commit@gnu.org; Wed, 31 Mar 2010 15:59:54 -0400
Received: from [10.1.0.108] (helo=vcs-noshell.in.savannah.gnu.org)
	by internal.in.savannah.gnu.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1Nx44w-0002kJ-6O
	for libtool-commit@gnu.org; Wed, 31 Mar 2010 19:59:54 +0000
Received: from rwild by vcs-noshell.in.savannah.gnu.org with local (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1Nx44v-0005c6-R2
	for libtool-commit@gnu.org; Wed, 31 Mar 2010 19:59:54 +0000
From: "Ralf Wildenhues" <Ralf.Wildenhues@gmx.de>
To: libtool-commit@gnu.org
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 03feff471901aeaac97b36964f88ed4d694dff99
X-Git-Newrev: d7e8e16dd075d1ceb92b36f72d32cbc2c2f16f07
Message-Id: <E1Nx44v-0005c6-R2@vcs-noshell.in.savannah.gnu.org>
Date: Wed, 31 Mar 2010 19:59:54 +0000
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Subject: [SCM] GNU Libtool branch, master, updated. v2.2.6-200-gd7e8e16
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
	tool <libtool-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 31 Mar 2010 19:59:58 -0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Libtool".

The branch, master has been updated
       via  d7e8e16dd075d1ceb92b36f72d32cbc2c2f16f07 (commit)
      from  03feff471901aeaac97b36964f88ed4d694dff99 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit d7e8e16dd075d1ceb92b36f72d32cbc2c2f16f07
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date:   Sun Mar 28 18:04:10 2010 +0200

    Add FAQ, and FAQ entry for flags stripped at library link time.
    
    * doc/libtool.texi (FAQ, Stripped link flags): New nodes.
    (Wrapper executables): Replace bug address with macro.
    (Compile mode, Link mode): Document `-Wc,' and `-Xcompiler '
    semantics better.
    * libltdl/config/ltmain.m4sh (func_mode_link): Rewrite comment
    for the flags that are passed through.
    Prompted by reports from Simon Richter <Simon.Richter@hogyros.de>,
    Török Edwin <edwintorok@gmail.com> and
    Åke Sandgren <ake.sandgren@hpc2n.umu.se>.
    
    Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                  |   13 ++++++++++
 doc/libtool.texi           |   55 +++++++++++++++++++++++++++++++++++++++++--
 libltdl/config/ltmain.m4sh |   22 ++++++++--------
 3 files changed, 76 insertions(+), 14 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 9fa30c8..0d94edf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2010-03-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+	Add FAQ, and FAQ entry for flags stripped at library link time.
+	* doc/libtool.texi (FAQ, Stripped link flags): New nodes.
+	(Wrapper executables): Replace bug address with macro.
+	(Compile mode, Link mode): Document `-Wc,' and `-Xcompiler '
+	semantics better.
+	* libltdl/config/ltmain.m4sh (func_mode_link): Rewrite comment
+	for the flags that are passed through.
+	Prompted by reports from Simon Richter <Simon.Richter@hogyros.de>,
+	Török Edwin <edwintorok@gmail.com> and
+	Åke Sandgren <ake.sandgren@hpc2n.umu.se>.
+
 2010-03-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
 	Fix preloader symbol list declaration in libltdl.
diff --git a/doc/libtool.texi b/doc/libtool.texi
index 47a22fa..323bf4e 100644
--- a/doc/libtool.texi
+++ b/doc/libtool.texi
@@ -95,6 +95,7 @@ GNU Libtool.
 * Dlopened modules::            @code{dlopen}ing libtool-created libraries.
 * Using libltdl::               Libtool's portable @code{dlopen} wrapper library.
 * Trace interface::             Libtool's trace interface.
+* FAQ::                         Frequently Asked Questions
 * Troubleshooting::             When libtool doesn't work as advertised.
 * Maintaining::                 Information used by the libtool maintainer.
 * GNU Free Documentation License:: License for this manual.
@@ -186,6 +187,10 @@ Using libltdl
 * Module loaders for libltdl::  Creating user defined module loaders.
 * Distributing libltdl::        How to distribute libltdl with your package.
 
+Frequently Asked Questions
+
+* Stripped link flags::         Dropped flags when creating a library
+
 Troubleshooting
 
 * Libtool test suite::          Libtool's self-tests.
@@ -886,7 +891,7 @@ employ command line options that begin with @code{--lt-}. (In fact, the
 wrapper executable will detect any command line options that begin with
 @code{--lt-} and abort with an error message if the option is not
 recognized). If this presents a problem, please contact the Libtool
-team at @email{bug-libtool@@gnu.org}.
+team at @value{BUGADDR}.
 
 These command line options include:
 
@@ -1405,7 +1410,9 @@ linking.
 
 @item -Wc,@var{flag}
 @itemx -Xcompiler @var{flag}
-Pass a flag directly to the compiler.
+Pass a flag directly to the compiler.  With @code{-Wc,}, multiple flags
+may be separated by commas, whereas @code{-Xcompiler } passes through
+commas unchanged.
 @end table
 
 @node Link mode
@@ -1593,7 +1600,9 @@ supplies the same interface (@pxref{Linking with dlopened modules}).
 
 @item -Wc,@var{flag}
 @itemx -Xcompiler @var{flag}
-Pass a linker-specific flag directly to the compiler.
+Pass a linker-specific flag directly to the compiler.  With @code{-Wc,},
+multiple flags may be separated by commas, whereas @code{-Xcompiler }
+passes through commas unchanged.
 
 @item -Wl,@var{flag}
 @itemx -Xlinker @var{flag}
@@ -4937,6 +4946,46 @@ autoconf --trace 'LT_SUPPORTED_TAG:$1'
 @end defmac
 
 
+@node FAQ
+@chapter Frequently Asked Questions about libtool
+
+This chapter covers some questions that often come up on the mailing
+lists.
+
+@menu
+* Stripped link flags::         Dropped flags when creating a library
+@end menu
+
+@node Stripped link flags
+@section Why does libtool strip link flags when creating a library?
+
+When creating a shared library, but not when compiling or creating
+a program, @command{libtool} drops some flags from the command line
+provided by the user.  This is done because flags unknown to
+@command{libtool} may interfere with library creation or require
+additional support from @command{libtool}, and because omitting
+flags is usually the conservative choice for a successful build.
+
+If you encounter flags that you think are useful to pass, as a
+work-around you can prepend flags with @code{-Wc,} or @code{-Xcompiler }
+to allow them to be passed through to the compiler driver
+(@pxref{Link mode}).  Another possibility is to add flags already
+to the compiler command at @command{configure} run time:
+
+@example
+./configure CC='gcc -m64'
+@end example
+
+If you think @command{libtool} should let some flag through by default,
+here's how you can test such an inclusion: grab the Libtool development
+tree, edit the @file{ltmain.m4sh} file in the @file{libltdl/config}
+subdirectory to pass through the flag (search for @samp{Flags to be
+passed through}), re-bootstrap and build with the flags in question
+added to @code{LDFLAGS}, @code{CFLAGS}, @code{CXXFLAGS}, etc. on the
+@command{configure} command line as appropriate.  Run the testsuite
+as described in the @file{README} file and report results to
+@value{BUGADDR}.
+
 @node Troubleshooting
 @chapter Troubleshooting
 @cindex troubleshooting
diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh
index e70a318..9e6646f 100644
--- a/libltdl/config/ltmain.m4sh
+++ b/libltdl/config/ltmain.m4sh
@@ -4483,17 +4483,17 @@ func_mode_link ()
 	arg="$func_quote_for_eval_result"
 	;;
 
-      # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
-      # -r[0-9][0-9]* specifies the processor on the SGI compiler
-      # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
-      # +DA*, +DD* enable 64-bit mode on the HP compiler
-      # -q* pass through compiler args for the IBM compiler
-      # -m*, -t[45]*, -txscale* pass through architecture-specific
-      # compiler args for GCC
-      # -F/path gives path to uninstalled frameworks, gcc on darwin
-      # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
-      # @file GCC response files
-      # -tp=* Portland pgcc target processor selection
+      # Flags to be passed through unchanged, with rationale:
+      # -64, -mips[0-9]      enable 64-bit mode for the SGI compiler
+      # -r[0-9][0-9]*        specify processor for the SGI compiler
+      # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
+      # +DA*, +DD*           enable 64-bit mode for the HP compiler
+      # -q*                  compiler args for the IBM compiler
+      # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
+      # -F/path              path to uninstalled frameworks, gcc on darwin
+      # -p, -pg, --coverage, -fprofile-*  profiling flags for GCC
+      # @file                GCC response files
+      # -tp=*                Portland pgcc target processor selection
       -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
       -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*)
         func_quote_for_eval "$arg"


hooks/post-receive
-- 
GNU Libtool



