[PATCH] utils: force static linkage

Yaakov (Cygwin/X) yselkowitz@users.sourceforge.net
Wed Feb 20 21:37:00 GMT 2013

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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: utils-static.patch
Type: text/x-patch
Size: 1356 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20130220/15cf7c93/attachment.bin>

More information about the Cygwin-patches mailing list