mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-14 14:01:48 +03:00
* doc/gnulib.texi (Native Windows Support): New chapter. * doc/windows-libtool.texi: Small wording changes. * doc/windows-sockets.texi: Small wording and formatting changes.
22 lines
645 B
Plaintext
22 lines
645 B
Plaintext
@node Libtool and Windows
|
|
@section Libtool and Windows
|
|
|
|
If you want it to be possible to compile your program for a native Windows
|
|
platform and you use Libtool, you need to use the @code{win32-dll} option of
|
|
@code{LT_INIT}. In other words, put:
|
|
|
|
@example
|
|
LT_INIT([win32-dll])
|
|
@end example
|
|
|
|
in your @file{configure.ac}. This sets the correct names for the
|
|
@code{OBJDUMP}, @code{DLLTOOL}, and @code{AS} tools for the build.
|
|
|
|
If you are building a library, you will also need to pass
|
|
@code{-no-undefined} to make sure Libtool produces a DLL for your
|
|
library. From a @file{Makefile.am}:
|
|
|
|
@example
|
|
libgsasl_la_LDFLAGS += -no-undefined
|
|
@end example
|