building gpgv 2.1 statically for win32 -- finding wrong iconv

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed Mar 30 08:09:18 CEST 2016


On Tue 2016-03-29 11:54:25 -0400, Daniel Kahn Gillmor wrote:
> The problem i'm having is that the configure process decides that the
> LDFLAGS for libiconv are:
>
>  -L/usr/i686-w64-mingw32/lib /usr/i686-w64-mingw32/lib/libiconv.dll.a
>
> If i build like this, then the supposedly "statically-built" gpgv2.exe
> that gets created still needs to find a copy of libiconv.dll.
>
> If i replace the above with:
>
>  -L/usr/i686-w64-mingw32/lib -liconv
>
> then gpgv2.exe is correctly statically built.
>
> How do i get ./configure to choose the latter approach instead of the
> former?

fwiw, the answer to this appears to be to add --without-libiconv-prefix
to the arguments to ./configure.  If anyone sees a problem with this
approach, or has a suggestion for an improvement, please let me know.

          --dkg



More information about the Gnupg-devel mailing list