From 69738df1c091aa02127cdb6da1d3a6b04a7d8735 Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Tue, 30 Jan 2024 14:36:01 +0100 Subject: [PATCH] Fix to compile DLLs, and pick out of the lib64 dir, and include libssp-0.dll and ldns-config. --- Changelog | 2 ++ makewin.sh | 23 ++++++++++++++++++----- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/Changelog b/Changelog index 306d540f..1513a40d 100644 --- a/Changelog +++ b/Changelog @@ -9,6 +9,8 @@ makewin.sh and check return value of bind and connect in net.c for failure instead of a socket type. And fix to install .exe files. Fix to compile with OpenSSL 3.2. Update acx_nlnetlabs.m4 to 48. + Fix to compile DLLs, and pick out of the lib64 dir, and include + libssp-0.dll and ldns-config. 1.8.3 2022-08-15 * bugfix #183: Assertion failure with OPT record without rdata. diff --git a/makewin.sh b/makewin.sh index 5ff03895..214eedec 100755 --- a/makewin.sh +++ b/makewin.sh @@ -215,8 +215,8 @@ libtoolize -ci autoreconf -fi ldns_flag_nonstatic="--with-examples --with-drill" if test -f "/usr/${warch}-w64-mingw32/sys-root/mingw/bin/libssp-0.dll" ; then - info "ldnsnonstatic: Configure $cross_flag_nonstatic $ldns_flag_nonstatic LDFLAGS=\"-fstack-protector\" LIBS=\"-l:libssp.a\"" - $configure $cross_flag_nonstatic $ldns_flag_nonstatic LDFLAGS="-fstack-protector" LIBS="-l:libssp.a" || error_cleanup "ldns configure failed" + info "ldnsnonstatic: Configure $cross_flag_nonstatic $ldns_flag_nonstatic LDFLAGS=\"-fstack-protector\" LIBS=\"-lssp\"" + $configure $cross_flag_nonstatic $ldns_flag_nonstatic LDFLAGS="-fstack-protector" LIBS="-lssp" || error_cleanup "ldns configure failed" else info "ldnsnonstatic: Configure $cross_flag_nonstatic $ldns_flag_nonstatic" $configure $cross_flag_nonstatic $ldns_flag_nonstatic || error_cleanup "ldns configure failed" @@ -240,9 +240,20 @@ installplacenonstatic="$ldnsinstallnonstatic/usr/$warch-w64-mingw32/sys-root/min cp "$installplace"/lib/libldns.a . cp "$installplacenonstatic"/lib/libldns.dll.a . cp "$installplacenonstatic"/bin/*.dll . -cp "$sslinstallnonstatic"/lib/*.dll.a . +if test -d "$sslinstallnonstatic"/lib64; then + cp "$sslinstallnonstatic"/lib64/*.dll.a . +else + cp "$sslinstallnonstatic"/lib/*.dll.a . +fi cp "$sslinstallnonstatic"/bin/*.dll . -cp "$sslinstallnonstatic"/lib/engines-*/*.dll . +if test -d "$sslinstallnonstatic"/lib64; then + cp "$sslinstallnonstatic"/lib64/engines-*/*.dll . +else + cp "$sslinstallnonstatic"/lib/engines-*/*.dll . +fi +if test -f "/usr/${warch}-w64-mingw32/sys-root/mingw/bin/libssp-0.dll" ; then + cp "/usr/${warch}-w64-mingw32/sys-root/mingw/bin/libssp-0.dll" . +fi cp ../ldns/LICENSE . cp ../ldns/README . cp ../ldns/Changelog . @@ -270,13 +281,15 @@ for x in man1/*.1; do groff -man -Tascii -Z "$x" | grotty -cbu > cat1/"$(basenam info "create cat3" mkdir cat3 for x in man3/*.3; do groff -man -Tascii -Z "$x" | grotty -cbu > cat3/"$(basename "$x" .3).txt"; done +add_files="" +if test -f ldns-config; then add_files="$add_files ldns-config"; fi rm -f "../../$file" info "$file contents" # show contents of directory we are zipping up. du -s ./* # zip it info "zip $file" -zip -r ../../"$file" LICENSE README libldns.a *.dll *.dll.a Changelog *.exe include man1 man3 cat1 cat3 +zip -r ../../"$file" LICENSE README libldns.a *.dll *.dll.a Changelog *.exe $add_files include man1 man3 cat1 cat3 info "Testing $file" (cd ../.. ; zip -T "$file" ) || error_cleanup "errors in zipfile $file" cd ..