w32: Use -static-libgcc to avoid linking to libgcc_s_sjlj-1.dll.
authorWerner Koch <wk@gnupg.org>
Tue, 3 Feb 2015 14:17:49 +0000 (15:17 +0100)
committerWerner Koch <wk@gnupg.org>
Tue, 3 Feb 2015 14:17:49 +0000 (15:17 +0100)
commit3ffea74924704c0986fde3e5e8b19d4fc55cfcb9
tree9cd98e96492005b18bb1c0174e0aa44c835a5b58
parenta2614eafa085bdb5a618589aaabc9edaabb83d1f
w32: Use -static-libgcc to avoid linking to libgcc_s_sjlj-1.dll.

* w32/Makefile.am: Remove non-Windows stuff.
(extra_ltoptions): New.
(libnpth_la_LDFLAGS): Use it.
--

Since gcc 4.8 there is a regression in that plain C programs may link
to libgcc_s.a which has a dependency on libgcc_s_sjlj.dll.  This is
for example triggered by using long long arithmetic on a 32 bit
Windows (e.g symbol __udivdi3).
w32/Makefile.am