From MAILER-DAEMON Mon Nov 01 03:17:25 2010
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PCodw-0002Js-6q
	for mharc-libtool-commit@gnu.org; Mon, 01 Nov 2010 03:17:24 -0400
Received: from [140.186.70.92] (port=36051 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PCodp-0002Jg-Mc
	for libtool-commit@gnu.org; Mon, 01 Nov 2010 03:17:19 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PCodo-0005YA-6g
	for libtool-commit@gnu.org; Mon, 01 Nov 2010 03:17:17 -0400
Received: from colonialone.fsf.org ([140.186.70.51]:49140
	helo=internal.in.savannah.gnu.org)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PCodo-0005Y6-3I
	for libtool-commit@gnu.org; Mon, 01 Nov 2010 03:17: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 1PCodn-0007GG-Pj
	for libtool-commit@gnu.org; Mon, 01 Nov 2010 07:17:15 +0000
Received: from pekberg by vcs-noshell.in.savannah.gnu.org with local (Exim
	4.69) (envelope-from <INVALID.NOREPLY@gnu.org>) id 1PCodn-0007lQ-Ec
	for libtool-commit@gnu.org; Mon, 01 Nov 2010 07:17:15 +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: e5b1c89cbe621e5c962056c4c8ae4362ce66b517
X-Git-Newrev: a1f625441532855d7238f1f3ff4c39902a6d92fc
Message-Id: <E1PCodn-0007lQ-Ec@vcs-noshell.in.savannah.gnu.org>
Date: Mon, 01 Nov 2010 07:17:15 +0000
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Subject: [SCM] GNU Libtool branch, master, updated. v2.4-22-ga1f6254
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/archive/html/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: Mon, 01 Nov 2010 07:17: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  a1f625441532855d7238f1f3ff4c39902a6d92fc (commit)
      from  e5b1c89cbe621e5c962056c4c8ae4362ce66b517 (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 a1f625441532855d7238f1f3ff4c39902a6d92fc
Author: Peter Rosin <peda@lysator.liu.se>
Date:   Mon Nov 1 08:11:34 2010 +0100

    * doc/libtool.texi (Platform quirks): Fix typo.

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

Summary of changes:
 ChangeLog        |    4 ++++
 doc/libtool.texi |    2 +-
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index f6be7e4..d3ecba7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-11-01  Peter Rosin  <peda@lysator.liu.se>
+
+	* doc/libtool.texi (Platform quirks): Fix typo.
+
 2010-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
 	docs: mention shell requirement for libtool script.
diff --git a/doc/libtool.texi b/doc/libtool.texi
index fa8d0d1..152d491 100644
--- a/doc/libtool.texi
+++ b/doc/libtool.texi
@@ -5970,7 +5970,7 @@ launch the MinGW application from GNU/Linux.  However, the wrapper executable,
 as a host platform (MinGW) application, must set the @env{PATH} variable so
 that the true application's dependent libraries can be located---but the
 contents of the @env{PATH} variable must be structured for MinGW.  Libtool
-must use the Wine file name mapping facilities to determined the correct value
+must use the Wine file name mapping facilities to determine the correct value
 so that the wrapper executable can set the @env{PATH} variable to point to the
 correct location.
 


hooks/post-receive
-- 
GNU Libtool


From MAILER-DAEMON Mon Nov 01 05:12:52 2010
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PCqRf-00014B-FJ
	for mharc-libtool-commit@gnu.org; Mon, 01 Nov 2010 05:12:51 -0400
Received: from [140.186.70.92] (port=59860 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PCqRc-000143-0h
	for libtool-commit@gnu.org; Mon, 01 Nov 2010 05:12:49 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PCqRa-0008PM-IZ
	for libtool-commit@gnu.org; Mon, 01 Nov 2010 05:12:47 -0400
Received: from colonialone.fsf.org ([140.186.70.51]:43268
	helo=internal.in.savannah.gnu.org)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PCqRa-0008PI-AM
	for libtool-commit@gnu.org; Mon, 01 Nov 2010 05:12:46 -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 1PCqRa-000081-8t
	for libtool-commit@gnu.org; Mon, 01 Nov 2010 09:12:46 +0000
Received: from pekberg by vcs-noshell.in.savannah.gnu.org with local (Exim
	4.69) (envelope-from <INVALID.NOREPLY@gnu.org>) id 1PCqRa-00060O-14
	for libtool-commit@gnu.org; Mon, 01 Nov 2010 09:12:46 +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: a1f625441532855d7238f1f3ff4c39902a6d92fc
X-Git-Newrev: 7a6ca6e6942ddad9f0dc95e8c6d32e062c9cedbc
Message-Id: <E1PCqRa-00060O-14@vcs-noshell.in.savannah.gnu.org>
Date: Mon, 01 Nov 2010 09:12:46 +0000
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Subject: [SCM] GNU Libtool branch, master, updated. v2.4-23-g7a6ca6e
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/archive/html/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: Mon, 01 Nov 2010 09:12:50 -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  7a6ca6e6942ddad9f0dc95e8c6d32e062c9cedbc (commit)
      from  a1f625441532855d7238f1f3ff4c39902a6d92fc (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 7a6ca6e6942ddad9f0dc95e8c6d32e062c9cedbc
Author: Peter Rosin <peda@lysator.liu.se>
Date:   Mon Nov 1 10:10:36 2010 +0100

    docs: Windows DLLs and headers.
    
    * doc/libtool.texi (Platform quirks): Add new subsection
    'Windows DLLs'.
    
    Signed-off-by: Peter Rosin <peda@lysator.liu.se>

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

Summary of changes:
 ChangeLog        |    4 +
 doc/libtool.texi |  195 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 199 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index d3ecba7..5d1ec7c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2010-11-01  Peter Rosin  <peda@lysator.liu.se>
 
+	docs: Windows DLLs and headers.
+	* doc/libtool.texi (Platform quirks): Add new subsection
+	'Windows DLLs'.
+
 	* doc/libtool.texi (Platform quirks): Fix typo.
 
 2010-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
diff --git a/doc/libtool.texi b/doc/libtool.texi
index 152d491..2f48a09 100644
--- a/doc/libtool.texi
+++ b/doc/libtool.texi
@@ -225,6 +225,7 @@ Platform quirks
 * Archivers::                   Programs that create static archives.
 * Cross compiling::             Issues that arise when cross compiling.
 * File name conversion::        Converting file names between platforms.
+* Windows DLLs::                Windows header defines.
 
 @end detailmenu
 @end menu
@@ -5775,6 +5776,7 @@ write your own.
 * Archivers::                   Programs that create static archives.
 * Cross compiling::             Issues that arise when cross compiling.
 * File name conversion::        Converting file names between platforms.
+* Windows DLLs::                Windows header defines.
 @end menu
 
 @node References
@@ -6328,6 +6330,199 @@ the source or build directory trees, and all @option{-M*} options to
 This is quite a fragile setup, but it has been in historical use, and so is
 documented here.
 
+@node Windows DLLs
+@subsection Windows DLLs
+@cindex Windows DLLs
+
+This topic describes a couple of ways to portably create Windows Dynamic
+Link Libraries (DLLs).  Libtool knows how to create DLLs using GNU tools
+and using Microsoft tools.
+
+A typical library has a ``hidden'' implementation with an interface
+described in a header file.  On just about every system, the interface
+could be something like this:
+
+Example @file{foo.h}:
+
+@example
+#ifndef FOO_H
+#define FOO_H
+
+int one (void);
+int two (void);
+extern int three;
+
+#endif /* FOO_H */
+@end example
+
+@noindent
+And the implementation could be something like this:
+
+Example @file{foo.c}:
+
+@example
+#include "foo.h"
+
+int one (void)
+@{
+  return 1;
+@}
+
+int two (void)
+@{
+  return three - one ();
+@}
+
+int three = 3;
+@end example
+
+When using contemporary GNU tools to create the Windows DLL, the above
+code will work there too, thanks to its auto-import/auto-export
+features.  But that is not the case when using older GNU tools or perhaps
+more interestingly when using proprietary tools.  In those cases the code
+will need additional decorations on the interface symbols with
+@code{__declspec(dllimport)} and @code{__declspec(dllexport)} depending
+on whether the library is built or it's consumed and how it's built and
+consumed.  However, it should be noted that it would have worked also
+with Microsoft tools, if only the variable @code{three} hadn't been
+there, due to the fact the Microsoft tools will automatically import
+functions (but sadly not variables) and Libtool will automatically export
+non-static symbols as described next.
+
+With Microsoft tools, Libtool digs through the object files that make up
+the library, looking for non-static symbols to automatically export.
+I.e., Libtool with Microsoft tools tries to mimic the auto-export feature
+of contemporary GNU tools.  It should be noted that the GNU auto-export
+feature is turned off when an explicit @code{__declspec(dllexport)} is
+seen.  The GNU tools do this to not make more symbols visible for projects
+that have already taken the trouble to decorate symbols.  There is no
+similar way to limit which symbols are visible in the code when Libtool
+is using Microsoft tools.  In order to limit symbol visibility in that
+case you need to use one of the options @option{-export-symbols} or
+@option{-export-symbols-regex}.
+
+No matching help with auto-import is provided by Libtool, which is why
+variables must be decorated to import them from a DLL for everything but
+contemporary GNU tools.  As stated above, functions are automatically
+imported by both contemporary GNU tools and Microsoft tools, but for
+other proprietary tools the auto-import status of functions is unknown.
+
+When the objects that form the library are built, there are generally
+two copies built for each object.  One copy is used when linking the DLL
+and one copy is used for the static library.  On Windows systems, a pair
+of defines are commonly used to discriminate how the interface symbols
+should be decorated.  The first define is @samp{-DDLL_EXPORT} which is
+automatically provided by Libtool when @command{libtool} builds the copy
+of the object that is destined for the DLL.  The second define is
+@samp{-DLIBFOO_BUILD} (or similar) which is often added by the package
+providing the library and is used when building the library, but not
+when consuming the library.
+
+However, the matching double compile is not performed when consuming
+libraries.  It is therefore not possible to reliably distinguish if the
+consumer is importing from a DLL or if it is going to use a static
+library.
+
+With contemporary GNU tools, auto-import often saves the day, but see
+the GNU ld documentation and its @option{--enable-auto-import} option
+for some corner cases when it does not
+(@pxref{Options, @option{--enable-auto-import}, Options specific to
+i386 PE targets, ld, Using ld@comma{} the GNU linker}).
+
+With Microsoft tools you typically get away with always compiling the
+code such that variables are expected to be imported from a DLL and
+functions are expected to be found in a static library.  The tools will
+then automatically import the function from a DLL if that is where they
+are found.  If the variables are not imported from a DLL as expected, but
+are found in a static library that is otherwise pulled in by some
+function, the linker will issue a warning (LNK4217) that a locally
+defined symbol is imported, but it still works.  In other words, this
+scheme will not work to only consume variables from a library.  There is
+also a price connected to this liberal use of imports in that an extra
+indirection is introduced when you are consuming the static version of
+the library.  That extra indirection is unavoidable when the DLL is
+consumed, but it is not needed when consuming the static library.
+
+For older GNU tools and other proprietary tools there is no generic way
+to make it possible to consume either of the DLL or the static library
+without user intervention, the tools need to be told what is intended.
+One common assumption is that if a DLL is being built (@samp{DLL_EXPORT}
+is defined) then that DLL is going to consume any dependent libraries as
+DLLs.  If that assumption is made everywhere, it is possible to select
+how an end-user application is consuming libraries by adding a single
+flag @samp{-DDLL_EXPORT} when a DLL build is required.  This is of course
+an all or nothing deal, either everything as DLLs or everything as static
+libraries.
+
+To sum up the above, the header file of the foo library needs to be
+changed into something like this:
+
+Modified @file{foo.h}:
+
+@example
+#ifndef FOO_H
+#define FOO_H
+
+#if defined _WIN32 && !defined __GNUC__
+# ifdef LIBFOO_BUILD
+#  ifdef DLL_EXPORT
+#   define LIBFOO_SCOPE            __declspec (dllexport)
+#   define LIBFOO_SCOPE_VAR extern __declspec (dllexport)
+#  endif
+# elif defined _MSC_VER
+#  define LIBFOO_SCOPE
+#  define LIBFOO_SCOPE_VAR  extern __declspec (dllimport)
+# elif defined DLL_EXPORT
+#  define LIBFOO_SCOPE             __declspec (dllimport)
+#  define LIBFOO_SCOPE_VAR  extern __declspec (dllimport)
+# endif
+#endif
+#ifndef LIBFOO_SCOPE
+# define LIBFOO_SCOPE
+# define LIBFOO_SCOPE_VAR extern
+#endif
+
+LIBFOO_SCOPE     int one (void);
+LIBFOO_SCOPE     int two (void);
+LIBFOO_SCOPE_VAR int three;
+
+#endif /* FOO_H */
+@end example
+
+When the targets are limited to contemporary GNU tools and Microsoft
+tools, the above can be simplified to the following:
+
+Simplified @file{foo.h}:
+
+@example
+#ifndef FOO_H
+#define FOO_H
+
+#if defined _WIN32 && !defined __GNUC__ && !defined LIBFOO_BUILD
+# define LIBFOO_SCOPE_VAR extern __declspec (dllimport)
+#else
+# define LIBFOO_SCOPE_VAR extern
+#endif
+
+int one (void);
+int two (void);
+LIBFOO_SCOPE_VAR int three;
+
+#endif /* FOO_H */
+@end example
+
+This last simplified version can of course only work when Libtool is
+used to build the DLL, as no symbols would be exported otherwise (i.e.,
+when using Microsoft tools).
+
+It should be noted that there are various projects that attempt to relax
+these requirements by various low level tricks, but they are not
+discussed here.
+Examples are
+@uref{http://alain.frisch.fr/@/flexdll.html, FlexDLL} and
+@uref{http://edll.sourceforge.net/, edll}.
+
+
 @node libtool script contents
 @section @code{libtool} script contents
 @cindex implementation of libtool


hooks/post-receive
-- 
GNU Libtool


From MAILER-DAEMON Wed Nov 10 13:29:57 2010
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PGFQi-0000SQ-Vj
	for mharc-libtool-commit@gnu.org; Wed, 10 Nov 2010 13:29:57 -0500
Received: from [140.186.70.92] (port=54514 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PGFQd-00007n-50
	for libtool-commit@gnu.org; Wed, 10 Nov 2010 13:29:55 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PGFQY-0005Sc-Ub
	for libtool-commit@gnu.org; Wed, 10 Nov 2010 13:29:50 -0500
Received: from colonialone.fsf.org ([140.186.70.51]:53508
	helo=internal.in.savannah.gnu.org)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PGFQY-0005SX-So
	for libtool-commit@gnu.org; Wed, 10 Nov 2010 13:29:46 -0500
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 1PGFQY-0002gf-PR
	for libtool-commit@gnu.org; Wed, 10 Nov 2010 18:29:46 +0000
Received: from rwild by vcs-noshell.in.savannah.gnu.org with local (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PGFQY-00079D-8K
	for libtool-commit@gnu.org; Wed, 10 Nov 2010 18:29:46 +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: 7a6ca6e6942ddad9f0dc95e8c6d32e062c9cedbc
X-Git-Newrev: 5ca9b3ec6b8be1cdd9713845b3e7cf389cc17ae4
Message-Id: <E1PGFQY-00079D-8K@vcs-noshell.in.savannah.gnu.org>
Date: Wed, 10 Nov 2010 18:29:46 +0000
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Subject: [SCM] GNU Libtool branch, master, updated. v2.4-24-g5ca9b3e
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/archive/html/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, 10 Nov 2010 18:29:55 -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  5ca9b3ec6b8be1cdd9713845b3e7cf389cc17ae4 (commit)
      from  7a6ca6e6942ddad9f0dc95e8c6d32e062c9cedbc (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 5ca9b3ec6b8be1cdd9713845b3e7cf389cc17ae4
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date:   Wed Nov 10 19:28:11 2010 +0100

    Fix cwrapper test failure with --disable-static.
    
    * tests/cwrapper.at (cwrapper and installed shared libraries):
    Compile program source without libtool, so we can be sure a
    non-PIC object will be created.
    
    Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

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

Summary of changes:
 ChangeLog         |    7 +++++++
 tests/cwrapper.at |    3 +--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 5d1ec7c..9c169e0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+	Fix cwrapper test failure with --disable-static.
+	* tests/cwrapper.at (cwrapper and installed shared libraries):
+	Compile program source without libtool, so we can be sure a
+	non-PIC object will be created.
+
 2010-11-01  Peter Rosin  <peda@lysator.liu.se>
 
 	docs: Windows DLLs and headers.
diff --git a/tests/cwrapper.at b/tests/cwrapper.at
index 6e8cf3c..0e5ecb7 100644
--- a/tests/cwrapper.at
+++ b/tests/cwrapper.at
@@ -249,8 +249,7 @@ int main (void)
 }
 ]])
 
-AT_CHECK([$LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c m.c],
-         [], [ignore], [ignore])
+AT_CHECK([$CC $CPPFLAGS $CFLAGS -c m.c], [], [ignore], [ignore])
 
 AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m1$EXEEXT m.$OBJEXT foo/liba.la],
          [], [ignore], [ignore])


hooks/post-receive
-- 
GNU Libtool


From MAILER-DAEMON Wed Nov 10 16:41:39 2010
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PGIQE-0000aQ-T9
	for mharc-libtool-commit@gnu.org; Wed, 10 Nov 2010 16:41:38 -0500
Received: from [140.186.70.92] (port=54538 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PGIQB-0000Zz-Rr
	for libtool-commit@gnu.org; Wed, 10 Nov 2010 16:41:37 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PGIQA-00086B-5t
	for libtool-commit@gnu.org; Wed, 10 Nov 2010 16:41:35 -0500
Received: from colonialone.fsf.org ([140.186.70.51]:46525
	helo=internal.in.savannah.gnu.org)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PGIQA-000867-36
	for libtool-commit@gnu.org; Wed, 10 Nov 2010 16:41:34 -0500
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 1PGIQ9-0004z1-KM
	for libtool-commit@gnu.org; Wed, 10 Nov 2010 21:41:33 +0000
Received: from rwild by vcs-noshell.in.savannah.gnu.org with local (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PGIQ9-0002kh-9W
	for libtool-commit@gnu.org; Wed, 10 Nov 2010 21:41:33 +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: 5ca9b3ec6b8be1cdd9713845b3e7cf389cc17ae4
X-Git-Newrev: 2a736edf3ee2432e204157f7d535afc09bb53e36
Message-Id: <E1PGIQ9-0002kh-9W@vcs-noshell.in.savannah.gnu.org>
Date: Wed, 10 Nov 2010 21:41:33 +0000
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Subject: [SCM] GNU Libtool branch, master, updated. v2.4-25-g2a736ed
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/archive/html/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, 10 Nov 2010 21:41:37 -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  2a736edf3ee2432e204157f7d535afc09bb53e36 (commit)
      from  5ca9b3ec6b8be1cdd9713845b3e7cf389cc17ae4 (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 2a736edf3ee2432e204157f7d535afc09bb53e36
Author: Ollie Wild <aaw@google.com>
Date:   Wed Nov 10 21:06:50 2010 +0100

    Modify --with-pic to support per-package configurations.
    
    * libltdl/m4/libtool.m4:  Modify --with-pic to accept a list of
    package names.  Modelled off --enable-shared.
    * tests/with-pic.at: New test.
    * Makefile.am (TESTSUITE_AT): Add tests/with-pic.at.
    * doc/libtool.texi (LT_INIT): Enhance documentation of
    --with-pic configure flag.
    * NEWS (New features): Mention that --with-pic now accepts a
    comma-separated list of package names.
    
    Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

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

Summary of changes:
 ChangeLog                          |   12 +++++++++
 Makefile.am                        |    1 +
 NEWS                               |    6 ++++
 doc/libtool.texi                   |   17 ++++++++++--
 libltdl/m4/ltoptions.m4            |   19 ++++++++++++-
 tests/{pic_flag.at => with-pic.at} |   49 +++++++++++++++++-------------------
 6 files changed, 73 insertions(+), 31 deletions(-)
 copy tests/{pic_flag.at => with-pic.at} (50%)

diff --git a/ChangeLog b/ChangeLog
index 9c169e0..97b9448 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2010-11-07  Ollie Wild  <aaw@google.com>
+
+	Modify --with-pic to support per-package configurations.
+	* libltdl/m4/libtool.m4:  Modify --with-pic to accept a list of
+	package names.  Modelled off --enable-shared.
+	* tests/with-pic.at: New test.
+	* Makefile.am (TESTSUITE_AT): Add tests/with-pic.at.
+	* doc/libtool.texi (LT_INIT): Enhance documentation of
+	--with-pic configure flag.
+	* NEWS (New features): Mention that --with-pic now accepts a
+	comma-separated list of package names.
+
 2010-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
 	Fix cwrapper test failure with --disable-static.
diff --git a/Makefile.am b/Makefile.am
index db2c0a9..66f38b1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -502,6 +502,7 @@ TESTSUITE_AT	= tests/testsuite.at \
 		  tests/ctor.at \
 		  tests/exceptions.at \
 		  tests/early-libtool.at \
+		  tests/with-pic.at \
 		  tests/no-executables.at \
 		  tests/deplibs-ident.at \
 		  tests/configure-iface.at \
diff --git a/NEWS b/NEWS
index d8d692e..6930274 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,12 @@ NEWS - list of user-visible changes between releases of GNU Libtool
 
 New in 2.4.2 2010-12-??: git version 2.4.1a, Libtool team:
 
+* New features:
+
+  - The --with-pic configure option now supports a list of comma-separated
+    package names.  This can be used to build some static libraries with PIC
+    objects while building others with non-PIC objects.
+
 * Bug fixes:
 
   - The generic approximation of the command line length limit (when getconf is
diff --git a/doc/libtool.texi b/doc/libtool.texi
index 2f48a09..5c2570d 100644
--- a/doc/libtool.texi
+++ b/doc/libtool.texi
@@ -2042,9 +2042,10 @@ LT_PREREQ([@value{VERSION}])
 @defmac LT_INIT (@var{options})
 @defmacx AC_PROG_LIBTOOL
 @defmacx AM_PROG_LIBTOOL
-Add support for the @option{--enable-shared} and @option{--disable-shared}
-@code{configure} flags.@footnote{@code{LT_INIT} requires that
-you define the @file{Makefile} variable @code{top_builddir} in your
+Add support for the @option{--enable-shared}, @option{--disable-shared},
+@option{--enable-static}, @option{--disable-static}, @option{--with-pic}, and
+@option{--without-pic} @code{configure} flags.@footnote{@code{LT_INIT} requires
+that you define the @file{Makefile} variable @code{top_builddir} in your
 @file{Makefile.in}.  Automake does this automatically, but Autoconf
 users should set it to the relative path to the top of your build
 directory (@file{../..}, for example).}  @code{AC_PROG_LIBTOOL} and
@@ -2086,6 +2087,16 @@ behaves similarly, but it uses @option{--enable-static} and
 The package name @samp{default} matches any packages that have not set
 their name in the @code{PACKAGE} environment variable.
 
+The @option{--with-pic} and @option{--without-pic} configure flags can be used
+to specify whether or not @command{libtool} uses PIC objects.  By default,
+@command{libtool} uses PIC objects for shared libraries and non-PIC objects for
+static libraries.  The @option{--with-pic} option also accepts a comma-separated
+list of package names.  Specifying @option{--with-pic=@var{pkgs}} is the same
+as configuring every package in @var{pkgs} with @option{--with-pic} and every
+other package with the default configuration.  The package name @samp{default}
+is treated the same as for @option{--enable-shared} and
+@option{--enable-static}.
+
 This macro also sets the shell variable @code{LIBTOOL_DEPS}, that you
 can use to automatically update the libtool script if it becomes
 out-of-date.  In order to do that, add to your @file{configure.ac}:
diff --git a/libltdl/m4/ltoptions.m4 b/libltdl/m4/ltoptions.m4
index 17cfd51..5d9acd8 100644
--- a/libltdl/m4/ltoptions.m4
+++ b/libltdl/m4/ltoptions.m4
@@ -326,9 +326,24 @@ dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
 # MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
 m4_define([_LT_WITH_PIC],
 [AC_ARG_WITH([pic],
-    [AS_HELP_STRING([--with-pic],
+    [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
 	[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
-    [pic_mode="$withval"],
+    [lt_p=${PACKAGE-default}
+    case $withval in
+    yes|no) pic_mode=$withval ;;
+    *)
+      pic_mode=default
+      # Look at the argument we got.  We use all the common list separators.
+      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
+      for lt_pkg in $withval; do
+	IFS="$lt_save_ifs"
+	if test "X$lt_pkg" = "X$lt_p"; then
+	  pic_mode=yes
+	fi
+      done
+      IFS="$lt_save_ifs"
+      ;;
+    esac],
     [pic_mode=default])
 
 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
diff --git a/tests/pic_flag.at b/tests/with-pic.at
similarity index 50%
copy from tests/pic_flag.at
copy to tests/with-pic.at
index fb39f7f..c01e5d7 100644
--- a/tests/pic_flag.at
+++ b/tests/with-pic.at
@@ -1,4 +1,4 @@
-# pic_flag.at -- override the pic_flag at configure time   -*- Autotest -*-
+# with-pic.at -- test the --with-pic flag -*- Autotest -*-
 
 #   Copyright (C) 2010 Free Software Foundation, Inc.
 #
@@ -21,36 +21,33 @@
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 ####
 
-AT_SETUP([override pic_flag at configure time])
+AT_SETUP([test --with-pic])
+eval `$LIBTOOL --config | $EGREP '^(pic_flag|FGREP)='`
 
-# Just try to configure the Libtool package with -fpic if we can compile
-# with it, for C and C++.
+AT_CHECK([test "z$pic_flag" != "z" || exit 77])
+AT_CHECK([test "$at_srcdir" != . || exit 77])
+
+CONFIGURE=$abs_top_srcdir/tests/demo/configure
+: ${MAKE=make}
 
-AT_DATA([foo.c],
-[[int data = 42;
-int func(void) { return data; }
-]])
+LT_AT_CONFIGURE([--disable-shared --with-pic=no], [$CONFIGURE])
+AT_CHECK([$MAKE], [], [stdout], [ignore])
+AT_CHECK([$FGREP -v "$pic_flag" stdout], [], [ignore], [ignore])
+$MAKE clean
 
-cp foo.c foo.cpp
-C_pic_flag='-fpic -DPIC'
-AT_CHECK([$CC $CPPFLAGS $CFLAGS $C_pic_flag -c foo.c || exit 77],
-	 [], [stdout], [stderr])
-# The configure test for the PIC flag also checks for warnings.
-AT_CHECK([grep fpic stdout stderr && exit 77], [1])
-AT_CHECK([[grep '[uU]nknown.*option' stdout stderr && exit 77]], [1])
+LT_AT_CONFIGURE([--disable-shared --with-pic=yes], [$CONFIGURE])
+AT_CHECK([$MAKE], [], [stdout], [ignore])
+AT_CHECK([$FGREP "$pic_flag" stdout], [], [ignore], [ignore])
+$MAKE clean
 
-CXX_pic_flag='-fpic -DPIC'
-if $CXX $CPPFLAGS $CXXFLAGS $CXX_pic_flag -c foo.cpp; then :; else
-  CXX_pic_flag=
-fi
+LT_AT_CONFIGURE([--disable-shared --with-pic="demo,foo,bar"], [$CONFIGURE])
+AT_CHECK([$MAKE], [], [stdout], [ignore])
+AT_CHECK([$FGREP "$pic_flag" stdout], [], [ignore], [ignore])
+$MAKE clean
 
-AT_CHECK([test "$at_srcdir" != . || exit 77])
-LT_AT_CONFIGURE([lt_cv_prog_compiler_pic="$C_pic_flag" ]dnl
-		[lt_cv_prog_compiler_pic_CXX="$CXX_pic_flag"],
-		["$abs_top_srcdir"/configure])
-: ${MAKE=make}
+LT_AT_CONFIGURE([--disable-shared --with-pic="foo,bar"], [$CONFIGURE])
 AT_CHECK([$MAKE], [], [stdout], [ignore])
-AT_CHECK([if ./libtool --features | grep 'enable shared libraries'; then ]dnl
-	 [  grep ' -fpic' stdout; else exit 77; fi], [], [ignore], [ignore])
+AT_CHECK([$FGREP -v "$pic_flag" stdout], [], [ignore], [ignore])
+$MAKE clean
 
 AT_CLEANUP


hooks/post-receive
-- 
GNU Libtool


From MAILER-DAEMON Mon Nov 15 16:49:44 2010
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PI6vo-0001ST-CE
	for mharc-libtool-commit@gnu.org; Mon, 15 Nov 2010 16:49:44 -0500
Received: from [140.186.70.92] (port=51455 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PI6vk-0001OM-Av
	for libtool-commit@gnu.org; Mon, 15 Nov 2010 16:49:42 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PI6vb-0005mk-U6
	for libtool-commit@gnu.org; Mon, 15 Nov 2010 16:49:36 -0500
Received: from colonialone.fsf.org ([140.186.70.51]:36551
	helo=internal.in.savannah.gnu.org)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PI6vb-0005me-Pg
	for libtool-commit@gnu.org; Mon, 15 Nov 2010 16:49:31 -0500
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 1PI6vb-0008Pm-Ac
	for libtool-commit@gnu.org; Mon, 15 Nov 2010 21:49:31 +0000
Received: from rwild by vcs-noshell.in.savannah.gnu.org with local (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PI6vb-00033P-2U
	for libtool-commit@gnu.org; Mon, 15 Nov 2010 21:49: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: 2a736edf3ee2432e204157f7d535afc09bb53e36
X-Git-Newrev: 8eb036bb129a5673dd6ada62075588424edf319a
Message-Id: <E1PI6vb-00033P-2U@vcs-noshell.in.savannah.gnu.org>
Date: Mon, 15 Nov 2010 21:49:31 +0000
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Subject: [SCM] GNU Libtool branch, master, updated. v2.4-26-g8eb036b
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/archive/html/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: Mon, 15 Nov 2010 21:49:42 -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  8eb036bb129a5673dd6ada62075588424edf319a (commit)
      from  2a736edf3ee2432e204157f7d535afc09bb53e36 (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 8eb036bb129a5673dd6ada62075588424edf319a
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date:   Sun Nov 14 18:01:07 2010 +0100

    Rebuild menus in the manual.
    
    * doc/automake.texi: Rebuild menus (using ^C ^U ^A in emacs).
    Thanks to Ian Lance Taylor for the suggestion.
    
    Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

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

Summary of changes:
 ChangeLog        |    6 ++++++
 doc/libtool.texi |   33 +++++++++++++++++++++------------
 2 files changed, 27 insertions(+), 12 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 97b9448..89b2d52 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-11-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+	Rebuild menus in the manual.
+	* doc/automake.texi: Rebuild menus (using ^C ^U ^A in emacs).
+	Thanks to Ian Lance Taylor for the suggestion.
+
 2010-11-07  Ollie Wild  <aaw@google.com>
 
 	Modify --with-pic to support per-package configurations.
diff --git a/doc/libtool.texi b/doc/libtool.texi
index 5c2570d..12d006b 100644
--- a/doc/libtool.texi
+++ b/doc/libtool.texi
@@ -100,7 +100,7 @@ GNU Libtool.
 * 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.
+* GNU Free Documentation License::  License for this manual.
 * Combined Index::              Full index.
 
 @detailmenu
@@ -127,7 +127,7 @@ Linking executables
 
 * Wrapper executables::         Wrapper executables for some platforms.
 
-Invoking @code{libtool}
+Invoking @command{libtool}
 
 * Compile mode::                Creating library object files.
 * Link mode::                   Generating executables and libraries.
@@ -176,7 +176,7 @@ Dlopened modules
 
 * Building modules::            Creating dlopenable objects and libraries.
 * Dlpreopening::                Dlopening that works on static platforms.
-* Linking with dlopened modules:: Using dlopenable modules in libraries.
+* Linking with dlopened modules::  Using dlopenable modules in libraries.
 * Finding the dlname::          Choosing the right file to @code{dlopen}.
 * Dlopen issues::               Unresolved problems that need your attention.
 
@@ -189,7 +189,7 @@ Using libltdl
 * Module loaders for libltdl::  Creating user defined module loaders.
 * Distributing libltdl::        How to distribute libltdl with your package.
 
-Frequently Asked Questions
+Frequently Asked Questions about libtool
 
 * Stripped link flags::         Dropped flags when creating a library
 
@@ -200,7 +200,7 @@ Troubleshooting
 
 The libtool test suite
 
-* Test descriptions::           The contents of the test suite.
+* Test descriptions::           The contents of the old test suite.
 * When tests fail::             What to do when a test fails.
 
 Maintenance notes for libtool
@@ -227,6 +227,15 @@ Platform quirks
 * File name conversion::        Converting file names between platforms.
 * Windows DLLs::                Windows header defines.
 
+File name conversion
+
+* File Name Conversion Failure::  What happens when file name conversion fails
+* Native MinGW File Name Conversion::  MSYS file name conversion idiosyncrasies
+* Cygwin/Windows File Name Conversion::  Using @command{cygpath} to convert Cygwin file names
+* Unix/Windows File Name Conversion::  Using Wine to convert Unix paths
+* LT_CYGPATH::                  Invoking @command{cygpath} from other environments
+* Cygwin to MinGW Cross::       Other notes concerning MinGW cross
+
 @end detailmenu
 @end menu
 
@@ -3347,7 +3356,7 @@ use libtool to generate dlopen-accessible modules.
 @menu
 * Building modules::            Creating dlopenable objects and libraries.
 * Dlpreopening::                Dlopening that works on static platforms.
-* Linking with dlopened modules:: Using dlopenable modules in libraries.
+* Linking with dlopened modules::  Using dlopenable modules in libraries.
 * Finding the dlname::          Choosing the right file to @code{dlopen}.
 * Dlopen issues::               Unresolved problems that need your attention.
 @end menu
@@ -6069,12 +6078,12 @@ See @pxref{Unix/Windows File Name Conversion} and @pxref{LT_CYGPATH}.
 @end multitable
 
 @menu
-* File Name Conversion Failure::        What happens when file name conversion fails
-* Native MinGW File Name Conversion::   MSYS file name conversion idiosyncrasies
-* Cygwin/Windows File Name Conversion:: Using @command{cygpath} to convert Cygwin file names
-* Unix/Windows File Name Conversion::   Using Wine to convert Unix paths
-* LT_CYGPATH::                          Invoking @command{cygpath} from other environments
-* Cygwin to MinGW Cross::               Other notes concerning MinGW cross
+* File Name Conversion Failure::  What happens when file name conversion fails
+* Native MinGW File Name Conversion::  MSYS file name conversion idiosyncrasies
+* Cygwin/Windows File Name Conversion::  Using @command{cygpath} to convert Cygwin file names
+* Unix/Windows File Name Conversion::  Using Wine to convert Unix paths
+* LT_CYGPATH::                  Invoking @command{cygpath} from other environments
+* Cygwin to MinGW Cross::       Other notes concerning MinGW cross
 @end menu
 
 @node File Name Conversion Failure


hooks/post-receive
-- 
GNU Libtool


From MAILER-DAEMON Mon Nov 15 17:14:14 2010
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PI7JW-0000lS-AW
	for mharc-libtool-commit@gnu.org; Mon, 15 Nov 2010 17:14:14 -0500
Received: from [140.186.70.92] (port=40363 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PI7JT-0000kG-Vm
	for libtool-commit@gnu.org; Mon, 15 Nov 2010 17:14:13 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PI7JP-0002NV-2v
	for libtool-commit@gnu.org; Mon, 15 Nov 2010 17:14:11 -0500
Received: from colonialone.fsf.org ([140.186.70.51]:51462
	helo=internal.in.savannah.gnu.org)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PI7JP-0002NR-1P
	for libtool-commit@gnu.org; Mon, 15 Nov 2010 17:14:07 -0500
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 1PI7JO-0000MG-TH
	for libtool-commit@gnu.org; Mon, 15 Nov 2010 22:14:06 +0000
Received: from rwild by vcs-noshell.in.savannah.gnu.org with local (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PI7JO-0004je-Kn
	for libtool-commit@gnu.org; Mon, 15 Nov 2010 22:14:06 +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: 8eb036bb129a5673dd6ada62075588424edf319a
X-Git-Newrev: 4fee8796c92a2ab554eb6596330ac06613c22807
Message-Id: <E1PI7JO-0004je-Kn@vcs-noshell.in.savannah.gnu.org>
Date: Mon, 15 Nov 2010 22:14:06 +0000
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Subject: [SCM] GNU Libtool branch, master, updated. v2.4-27-g4fee879
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/archive/html/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: Mon, 15 Nov 2010 22:14:13 -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  4fee8796c92a2ab554eb6596330ac06613c22807 (commit)
      from  8eb036bb129a5673dd6ada62075588424edf319a (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 4fee8796c92a2ab554eb6596330ac06613c22807
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date:   Mon Nov 15 23:13:33 2010 +0100

    Eliminate hardcode_libdir_flag_spec_ld tag variable.
    
    * libltdl/config/ltmain.m4sh (func_mode_link): Set $wl to empty
    if $LD is used for creating shared libraries.  Do not use
    hardcode_libdir_flag_spec_ld any more.
    * libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS, _LT_LANG_CXX_CONFIG)
    (_LT_LANG_F77_CONFIG, _LT_LANG_FC_CONFIG, _LT_SYS_DYNAMIC_LINKER)
    <hardcode_libdir_flag_spec_ld>: Remove all instances of the tag
    variable.
    (_LT_LINKER_SHLIBS) [linux, xlf] <hardcode_libdir_flag_spec>:
    Set variable, including ${wl}.  Fixes hardcoding in programs
    created by XL Fortran on GNU/Linux.
    * NEWS, THANKS: Update.
    Report by Paul H. Hargrove.
    
    Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

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

Summary of changes:
 ChangeLog                  |   14 ++++++++++++++
 NEWS                       |    9 +++++++++
 libltdl/config/ltmain.m4sh |   11 ++++++-----
 libltdl/m4/libtool.m4      |   11 +----------
 4 files changed, 30 insertions(+), 15 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 89b2d52..e418f3c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,19 @@
 2010-11-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+	Eliminate hardcode_libdir_flag_spec_ld tag variable.
+	* libltdl/config/ltmain.m4sh (func_mode_link): Set $wl to empty
+	if $LD is used for creating shared libraries.  Do not use
+	hardcode_libdir_flag_spec_ld any more.
+	* libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS, _LT_LANG_CXX_CONFIG)
+	(_LT_LANG_F77_CONFIG, _LT_LANG_FC_CONFIG, _LT_SYS_DYNAMIC_LINKER)
+	<hardcode_libdir_flag_spec_ld>: Remove all instances of the tag
+	variable.
+	(_LT_LINKER_SHLIBS) [linux, xlf] <hardcode_libdir_flag_spec>:
+	Set variable, including ${wl}.  Fixes hardcoding in programs
+	created by XL Fortran on GNU/Linux.
+	* NEWS, THANKS: Update.
+	Report by Paul H. Hargrove.
+
 	Rebuild menus in the manual.
 	* doc/automake.texi: Rebuild menus (using ^C ^U ^A in emacs).
 	Thanks to Ian Lance Taylor for the suggestion.
diff --git a/NEWS b/NEWS
index 6930274..83cee5e 100644
--- a/NEWS
+++ b/NEWS
@@ -15,6 +15,15 @@ New in 2.4.2 2010-12-??: git version 2.4.1a, Libtool team:
   - The bug that leaked developer tool paths into the release tarballs
     from ./bootstrap is fixed.
 
+* Important incompatible changes:
+
+  - The undocumented hardcode_libdir_flag_spec_ld tag variable has been
+    removed in favor of using hardcode_libdir_flag_spec with $wl set to empty.
+
+* Changes in supported systems or compilers:
+
+  - Fixes for gfortran on Darwin, XL Fortran on GNU/Linux.
+
 New in 2.4 2010-09-22: git version 2.2.11a, Libtool team:
 
 * New features:
diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh
index af46cb8..aff8a1c 100644
--- a/libltdl/config/ltmain.m4sh
+++ b/libltdl/config/ltmain.m4sh
@@ -7237,6 +7237,11 @@ EOF
 
       # Test again, we may have decided not to build it any more
       if test "$build_libtool_libs" = yes; then
+	# Remove ${wl} instances when linking with ld.
+	# FIXME: should test the right _cmds variable.
+	case $archive_cmds in
+	  *\$LD\ *) wl= ;;
+        esac
 	if test "$hardcode_into_libs" = yes; then
 	  # Hardcode the library paths
 	  hardcode_libdirs=
@@ -7275,11 +7280,7 @@ EOF
 	  if test -n "$hardcode_libdir_separator" &&
 	     test -n "$hardcode_libdirs"; then
 	    libdir="$hardcode_libdirs"
-	    if test -n "$hardcode_libdir_flag_spec_ld"; then
-	      eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
-	    else
-	      eval dep_rpath=\"$hardcode_libdir_flag_spec\"
-	    fi
+	    eval "dep_rpath=\"$hardcode_libdir_flag_spec\""
 	  fi
 	  if test -n "$runpath_var" && test -n "$perm_rpath"; then
 	    # We should set the runpath_var.
diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4
index d8b3a4d..419ffe1 100644
--- a/libltdl/m4/libtool.m4
+++ b/libltdl/m4/libtool.m4
@@ -4522,7 +4522,6 @@ m4_if([$1], [CXX], [
   _LT_TAGVAR(hardcode_direct, $1)=no
   _LT_TAGVAR(hardcode_direct_absolute, $1)=no
   _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
-  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
   _LT_TAGVAR(hardcode_libdir_separator, $1)=
   _LT_TAGVAR(hardcode_minus_L, $1)=no
   _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
@@ -4773,8 +4772,7 @@ _LT_EOF
 	xlf* | bgf* | bgxlf* | mpixlf*)
 	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 	  _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
-	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
-	  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
+	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 	  _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
 	  if test "x$supports_anon_versioning" = xyes; then
 	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
@@ -5171,7 +5169,6 @@ _LT_EOF
       fi
       if test "$with_gnu_ld" = no; then
 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
-	_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
 	_LT_TAGVAR(hardcode_direct, $1)=yes
 	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
@@ -5613,9 +5610,6 @@ _LT_TAGDECL([], [no_undefined_flag], [1],
 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
     [Flag to hardcode $libdir into a binary during linking.
     This must work even if $libdir does not exist])
-_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
-    [[If ld is used when linking, flag to hardcode $libdir into a binary
-    during linking.  This must work even if $libdir does not exist]])
 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
     [Whether we need a single "-rpath" flag with a separated argument])
 _LT_TAGDECL([], [hardcode_direct], [0],
@@ -5773,7 +5767,6 @@ _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 _LT_TAGVAR(hardcode_direct, $1)=no
 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
-_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 _LT_TAGVAR(hardcode_libdir_separator, $1)=
 _LT_TAGVAR(hardcode_minus_L, $1)=no
 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
@@ -7106,7 +7099,6 @@ _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 _LT_TAGVAR(hardcode_direct, $1)=no
 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
-_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 _LT_TAGVAR(hardcode_libdir_separator, $1)=
 _LT_TAGVAR(hardcode_minus_L, $1)=no
 _LT_TAGVAR(hardcode_automatic, $1)=no
@@ -7239,7 +7231,6 @@ _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 _LT_TAGVAR(hardcode_direct, $1)=no
 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
-_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 _LT_TAGVAR(hardcode_libdir_separator, $1)=
 _LT_TAGVAR(hardcode_minus_L, $1)=no
 _LT_TAGVAR(hardcode_automatic, $1)=no


hooks/post-receive
-- 
GNU Libtool


