From: Jason Ish Date: Wed, 7 Jun 2023 15:22:32 +0000 (-0600) Subject: windows: add -lntdll to Windows builds X-Git-Tag: suricata-6.0.13~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13dbb5d11aef9387fe1acd7413881a5585d2949a;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 6920047abb..83acfbc8f9 100644 --- a/configure.ac +++ b/configure.ac @@ -268,7 +268,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)