Commit d8fe6579 authored by Karel Slaný's avatar Karel Slaný

Added commented-out Makefile code related to unbound-1.5.x.

parent a5d76b6e
......@@ -101,6 +101,9 @@ CLEANFILES += \
libDNSSECcore.def \
libDANEcore.def
# Sometimes explicit call of -pthread is needed (unbound 1.5.x).
#MINGW_PTHREAD = -pthread
# Created dynamic libraries are will libgcc_s_sjlj-1.dll if this parameter not specified.
MINGW_LIB_STATIC = -static-libgcc
......@@ -108,13 +111,13 @@ MINGW_LIB_STATIC = -static-libgcc
# 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 $(MINGW_LIB_STATIC) -Wl,--output-def,libDNSSECcore.def,-Bstatic,-Bsymbolic,-lws2_32,-liphlpapi,-lgdi32,-lcrypt32 \
$(CC) $(MINGW_PTHREAD) -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 $(MINGW_LIB_STATIC) -Wl,--output-def,libDANEcore.def,-Bstatic,-Bsymbolic,-lws2_32,-liphlpapi,-lgdi32,-lcrypt32 \
$(CC) $(MINGW_PTHREAD) -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 && \
......
......@@ -48,6 +48,10 @@ dnssec_plug_LDADD += \
endif
if MINGW_BUILD
# Sometimes explicit call of -pthread is needed (unbound 1.5.x).
#dnssec_plug_LDFLAGS += \
# -pthread
dnssec_plug_LDADD += \
-lws2_32 -liphlpapi -lgdi32 -lcrypt32
endif
......@@ -74,6 +78,10 @@ dane_plug_LDADD += \
endif
if MINGW_BUILD
# Sometimes explicit call of -pthread is needed (unbound 1.5.x).
#dane_plug_LDFLAGS += \
# -pthread
dane_plug_LDADD += \
-lws2_32 -liphlpapi -lgdi32 -lcrypt32
endif
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