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

Skipping ldns linktest when building static libraries.

When using mingw-w64 then ldns failed to build.
parent cf19984c
......@@ -116,6 +116,11 @@ COPY_HEADERS_CMD_32 = \
$(INSTALL) -m 644 ldns/net.h $(abs_builddir)/libs-built-32/windows/x86/ldns/net.h)
endif
# Linker from mingw-w64 has problems passing the linktest of ldns-1.6.17
# because the libraries are passed in wrong order and -lcrypt32 missing
# completelly. (Parameter -lldns should be used first and -lcrypt32 should be
# added.)
built-ldns-32-stamp: srcs-ldns-32-stamp libs-built-32-stamp built-openssl-32-stamp
-rm -rf libs-built-32/ldns
$(INSTALL) -d libs-built-32/ldns
......@@ -124,7 +129,8 @@ built-ldns-32-stamp: srcs-ldns-32-stamp libs-built-32-stamp built-openssl-32-sta
--with-ssl="$(abs_builddir)/libs-built-32/openssl" \
--disable-ldns-config --without-pyldnsx \
--with-pic --prefix="$(abs_builddir)/libs-built-32/ldns" $(CONFIGURE_ARGS) && \
CFLAGS="$(CFLAGS)" $(MAKE) && $(MAKE) install-h install-lib && \
CFLAGS="$(CFLAGS)" $(MAKE) lib && $(MAKE) install-h install-lib; \
CFLAGS="$(CFLAGS)" $(MAKE) linktest >_linktest.txt 2>&1 || cat _linktest.txt; \
$(MAKE) clean)
$(COPY_HEADERS_CMD_32)
touch $@
......@@ -137,7 +143,8 @@ built-ldns-64-stamp: srcs-ldns-64-stamp libs-built-64-stamp built-openssl-64-sta
--with-ssl="$(abs_builddir)/libs-built-64/openssl" \
--disable-ldns-config --without-pyldnsx \
--with-pic --prefix="$(abs_builddir)/libs-built-64/ldns" $(CONFIGURE_ARGS) && \
CFLAGS="$(CFLAGS)" $(MAKE) && $(MAKE) install-h install-lib && \
CFLAGS="$(CFLAGS)" $(MAKE) lib && $(MAKE) install-h install-lib && \
CFLAGS="$(CFLAGS)" $(MAKE) linktest >_linktest.txt 2>&1 || cat _linktest.txt; \
$(MAKE) clean)
$(COPY_HEADERS_CMD_64)
touch $@
......
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