Skip to content

Commit 13dbb5d

Browse files
jasonishvictorjulien
authored andcommitted
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 extendr/rextendr#285 for the fix.
1 parent 1b9e4fb commit 13dbb5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@
268268
CFLAGS="${CFLAGS} -DOS_WIN32"
269269
WINDOWS_PATH="yes"
270270
AC_DEFINE([HAVE_NON_POSIX_MKDIR], [1], [mkdir is not POSIX compliant: single arg])
271-
RUST_LDADD=" -lws2_32 -liphlpapi -lwbemuuid -lOle32 -lOleAut32 -lUuid -luserenv -lshell32 -ladvapi32 -lgcc_eh -lbcrypt"
271+
RUST_LDADD=" -lws2_32 -liphlpapi -lwbemuuid -lOle32 -lOleAut32 -lUuid -luserenv -lshell32 -ladvapi32 -lgcc_eh -lbcrypt -lntdll"
272272
TRY_WPCAP="yes"
273273
;;
274274
*-*-cygwin)

0 commit comments

Comments
 (0)