Commit 1e1988f4 authored by Karel Slaný's avatar Karel Slaný

Linking libgcc statically when overriding libtool when using w64-mingw.

The library libgcc_s_sjlj-1.dll was missing. That was the reason why the core
libraries failed to be loaded.
parent bc8c40ff
......@@ -101,17 +101,20 @@ CLEANFILES += \
libDNSSECcore.def \
libDANEcore.def
# Created dynamic libraries are will libgcc_s_sjlj-1.dll if this parameter not specified.
MINGW_LIB_STATIC = -static-libgcc
# Libtool refuses to link static archives into dynamic libraries, therefore the explicit linking.
# libldns contains inet_pton() and inet_ntop(), therefore it is always linked (using DANE_CORE_STATIC_DEPS).
# Also, the commands may require winpthread-static to have installed.
DNSSEC_CORE_INSTALL_CMD = \
$(CC) -shared -Wl,--output-def,libDNSSECcore.def,-Bstatic,-Bsymbolic,-lws2_32,-liphlpapi,-lgdi32,-lcrypt32 \
$(CC) -shared $(MINGW_LIB_STATIC) -Wl,--output-def,libDNSSECcore.def,-Bstatic,-Bsymbolic,-lws2_32,-liphlpapi,-lgdi32,-lcrypt32 \
-Wl,--version-script=$(abs_top_builddir)/core_js-ctypes/libDNSSECcore.ver \
-o .libs/libDNSSECcore$(SO_SUFF) common.o dnssec-plug.o log_dflt.o \
$(DANE_CORE_STATIC_DEPS) -lws2_32 -liphlpapi -lgdi32 -lcrypt32 && \
touch libDNSSECcore.la
DANE_CORE_INSTALL_CMD = \
$(CC) -shared -Wl,--output-def,libDANEcore.def,-Bstatic,-Bsymbolic,-lws2_32,-liphlpapi,-lgdi32,-lcrypt32 \
$(CC) -shared $(MINGW_LIB_STATIC) -Wl,--output-def,libDANEcore.def,-Bstatic,-Bsymbolic,-lws2_32,-liphlpapi,-lgdi32,-lcrypt32 \
-Wl,--version-script=$(abs_top_builddir)/core_js-ctypes/libDANEcore.ver \
-o .libs/libDANEcore$(SO_SUFF) common.o dane-plug.o log_dflt.o ca_store_win.o \
$(DANE_CORE_STATIC_DEPS) -lws2_32 -liphlpapi -lgdi32 -lcrypt32 && \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment