Mercurial > gnulib
view doc/windows-libtool.texi @ 40190:ef116535bf1a
relocatable-prog: Use $ORIGIN trick on more platforms.
* m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
Solaris >= 10, Haiku. But don't use it on Android.
* build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Wed, 20 Feb 2019 02:39:52 +0100 |
parents | a64fce491bb5 |
children |
line wrap: on
line source
@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