Bug 1836723 - Link against ntdll for rustc 1.70. r=firefox-build-system-reviewers,ahochheiden

Building with rustc 1.70 adds a dependency to the ntdll library through
libstd using NtCreateFile/NtWriteFile (it previously picked the symbols
at runtime).

Differential Revision: https://phabricator.services.mozilla.com/D180011
This commit is contained in:
Mike Hommey 2023-06-05 22:05:16 +00:00
parent 98a98f9cae
commit aec3a901e6
5 changed files with 5 additions and 0 deletions

View File

@ -82,6 +82,7 @@ if CONFIG["OS_ARCH"] == "SunOS":
if CONFIG["OS_ARCH"] == "WINNT":
OS_LIBS += [
"bcrypt",
"ntdll",
]
if CONFIG["MOZ_NEEDS_LIBATOMIC"]:

View File

@ -28,6 +28,7 @@ if CONFIG["OS_ARCH"] == "WINNT":
]
OS_LIBS += [
"bcrypt",
"ntdll",
]

View File

@ -30,6 +30,7 @@ if CONFIG["OS_ARCH"] == "WINNT":
]
OS_LIBS += [
"bcrypt",
"ntdll",
]

View File

@ -18,6 +18,7 @@ if CONFIG["OS_ARCH"] == "WINNT":
"ncrypt",
"userenv",
"ws2_32",
"ntdll",
]
if CONFIG["OS_ARCH"] == "Darwin":

View File

@ -71,6 +71,7 @@ OS_LIBS += [
"userenv",
"wininet",
"ws2_32",
"ntdll",
]
DEFINES["NS_NO_XPCOM"] = True