This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
Re: [PATCH] utils: force static linkage
- From: Christopher Faylor <cgf-use-the-mailinglist-please at cygwin dot com>
- To: cygwin-patches at cygwin dot com
- Date: Wed, 20 Feb 2013 20:15:16 -0500
- Subject: Re: [PATCH] utils: force static linkage
- References: <20130220153103.48a3a6d5@YAAKOV04>
- Reply-to: cygwin-patches at cygwin dot com
On Wed, Feb 20, 2013 at 03:31:03PM -0600, Yaakov wrote:
>Last time I checked, we were linking all utils statically, so this
>caught me by surprise:
>
>$ /bin/ldd dumper.exe
> ntdll.dll => /cygdrive/c/Windows/SysWOW64/ntdll.dll (0x77d70000)
> kernel32.dll => /cygdrive/c/Windows/syswow64/kernel32.dll (0x75a50000)
> KERNELBASE.dll => /cygdrive/c/Windows/syswow64/KERNELBASE.dll (0x76ef0000)
> cygwin1.dll => /usr/bin/cygwin1.dll (0x61000000)
> cygintl-8.dll => /usr/bin/cygintl-8.dll (0x49bd0000)
> cygiconv-2.dll => /usr/bin/cygiconv-2.dll (0x6bfb0000)
> ??? => ??? (0x550000)
>
>The -static flag implies -static-libgcc (see gcc -dumpspecs) and affects
>all other libraries (including libstdc++). Patch for HEAD attached.
>
>
>Yaakov
>2013-02-20 Yaakov Selkowitz <yselkowitz@...>
>
> * Makefile.in (CYGWIN_LDFLAGS): Replace -static-lib* with -static.
> (MINGW_LDFLAGS): Ditto.
> (ZLIB): Simplify accordingly.
Please check in.
cgf