From 4613d2bf047857442c63d8f9177cda91b82e84e0 Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Thu, 14 Jan 2021 16:50:17 +0100 Subject: [PATCH] - Fix for #93: dynlibmodule import library is named libunbound.dll.a. --- configure | 2 +- configure.ac | 2 +- doc/Changelog | 3 +++ dynlibmod/examples/helloworld.c | 6 ++++-- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/configure b/configure index 87959deae..7957f0dd6 100755 --- a/configure +++ b/configure @@ -17237,7 +17237,7 @@ $as_echo "#define WITH_DYNLIBMODULE 1" >>confdefs.h if test $on_mingw = "no"; then DYNLIBMOD_EXTRALIBS="-ldl -export-dynamic" else - DYNLIBMOD_EXTRALIBS="-Wl,--export-all-symbols,--out-implib,libunbound.a" + DYNLIBMOD_EXTRALIBS="-Wl,--export-all-symbols,--out-implib,libunbound.dll.a" fi fi diff --git a/configure.ac b/configure.ac index 02b9eb47b..3e872bca9 100644 --- a/configure.ac +++ b/configure.ac @@ -644,7 +644,7 @@ if test x_$withval != x_no; then if test $on_mingw = "no"; then DYNLIBMOD_EXTRALIBS="-ldl -export-dynamic" else - DYNLIBMOD_EXTRALIBS="-Wl,--export-all-symbols,--out-implib,libunbound.a" + DYNLIBMOD_EXTRALIBS="-Wl,--export-all-symbols,--out-implib,libunbound.dll.a" fi AC_SUBST(DYNLIBMOD_EXTRALIBS) fi diff --git a/doc/Changelog b/doc/Changelog index c3223b05a..335ecf89b 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,6 @@ +14 January 2021: Wouter + - Fix for #93: dynlibmodule import library is named libunbound.dll.a. + 13 January 2021: Wouter - Merge #399 from xiangbao227: The lock of lruhash table should unlocked after markdel entry. diff --git a/dynlibmod/examples/helloworld.c b/dynlibmod/examples/helloworld.c index 7da32d9bb..be2116843 100644 --- a/dynlibmod/examples/helloworld.c +++ b/dynlibmod/examples/helloworld.c @@ -7,8 +7,10 @@ * And to build for windows, first make unbound with the --with-dynlibmod * switch, then use this command: * x86_64-w64-mingw32-gcc -m64 -I../.. -shared -Wall -Werror -fpic - * -o helloworld.dll helloworld.c -L../.. -l:libunbound.a - * to cross-compile a 64-bit Windows DLL. + * -o helloworld.dll helloworld.c -L../.. -l:libunbound.dll.a + * to cross-compile a 64-bit Windows DLL. The libunbound.dll.a is produced + * by the compile step that makes unbound.exe and allows the dynlib dll to + * access definitions in unbound.exe. */ #include "../../config.h" -- 2.47.3