2006-07-14 Simon Josefsson <jas@extundo.com>
authorSimon Josefsson <simon@josefsson.org>
Fri, 14 Jul 2006 09:32:13 +0000 (09:32 +0000)
committerSimon Josefsson <simon@josefsson.org>
Fri, 14 Jul 2006 09:32:13 +0000 (09:32 +0000)
* gnulib.texi (Libtool and Windows): New section.

doc/ChangeLog
doc/gnulib.texi

index 50b8891..5b3f2ce 100644 (file)
@@ -1,3 +1,7 @@
+2006-07-14  Simon Josefsson  <jas@extundo.com>
+
+       * gnulib.texi (Libtool and Windows): New section.
+
 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
index 897d8ea..96cd92a 100644 (file)
@@ -1,5 +1,5 @@
 \input texinfo   @c -*-texinfo-*-
-@comment $Id: gnulib.texi,v 1.24 2006-07-10 06:37:33 rwild Exp $
+@comment $Id: gnulib.texi,v 1.25 2006-07-14 09:32:13 jas Exp $
 @comment %**start of header
 @setfilename gnulib.info
 @settitle GNU Gnulib
@@ -7,7 +7,7 @@
 @syncodeindex pg cp
 @comment %**end of header
 
-@set UPDATED $Date: 2006-07-10 06:37:33 $
+@set UPDATED $Date: 2006-07-14 09:32:13 $
 
 @copying
 This manual is for GNU Gnulib (updated @value{UPDATED}),
@@ -90,6 +90,7 @@ Getting started:
 * Library version handling::
 * Regular expressions::
 * Windows sockets::
+* Libtool and Windows::
 @end menu
 
 
@@ -327,6 +328,29 @@ Todo: Make getaddrinfo.c open the WS2_32.DLL and check for the
 getaddrinfo symbol and use it if present, otherwise fall back to our
 own implementation.
 
+@node Libtool and Windows
+@section Libtool and Windows
+
+If you want it to be possible to cross-compile your program to MinGW
+and you use Libtool, you need to put:
+
+@example
+AC_LIBTOOL_WIN32_DLL
+@end example
+
+in your @file{configure.ac}.
+
+The effect of this is that the names of the @code{OBJDUMP},
+@code{DLLTOOL}, and @code{AS} tools are set up correct.
+
+If you are building a library, you will also need to pass
+@code{-no-undefined} to make sure Libtool produce a DLL for your
+library.  From a @file{Makefile.am}:
+
+@example
+libgsasl_la_LDFLAGS += -no-undefined
+@end example
+
 @include gnulib-tool.texi