From: Jason Ish Date: Wed, 7 Jun 2023 15:22:32 +0000 (-0600) Subject: windows: add -lntdll to Windows builds X-Git-Tag: suricata-7.0.0-rc2~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03442a36efaa1592c680ce43280fe2e007eb8efe;p=thirdparty%2Fsuricata.git windows: add -lntdll to Windows builds Rust 1.70 has introduced some possible issues between LLVM and gcc causing link errors that are fixed by explicitly adding -lntdll. Thanks to https://github.com/extendr/rextendr/pull/285 for the fix. --- diff --git a/configure.ac b/configure.ac index 77a90b88dc..03800c3717 100644 --- a/configure.ac +++ b/configure.ac @@ -273,7 +273,7 @@ CFLAGS="${CFLAGS} -DOS_WIN32" WINDOWS_PATH="yes" AC_DEFINE([HAVE_NON_POSIX_MKDIR], [1], [mkdir is not POSIX compliant: single arg]) - RUST_LDADD=" -lws2_32 -liphlpapi -lwbemuuid -lOle32 -lOleAut32 -lUuid -luserenv -lshell32 -ladvapi32 -lgcc_eh -lbcrypt" + RUST_LDADD=" -lws2_32 -liphlpapi -lwbemuuid -lOle32 -lOleAut32 -lUuid -luserenv -lshell32 -ladvapi32 -lgcc_eh -lbcrypt -lntdll" TRY_WPCAP="yes" ;; *-*-cygwin)