]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
windows: add -lntdll to Windows builds 8990/head
authorJason Ish <jason.ish@oisf.net>
Wed, 7 Jun 2023 15:22:32 +0000 (09:22 -0600)
committerVictor Julien <vjulien@oisf.net>
Thu, 8 Jun 2023 07:31:07 +0000 (09:31 +0200)
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.

configure.ac

index 77a90b88dcd1087944192bad5c5809aadabcd2fe..03800c371734808a8f6d15772a38cee6dc580945 100644 (file)
             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)