Bug 1904543 - Don't add -z defs on Windows builds. r=firefox-build-system-reviewers,ahochheiden

Differential Revision: https://phabricator.services.mozilla.com/D214898
This commit is contained in:
Mike Hommey
2024-06-25 22:47:55 +00:00
parent f991cf24bb
commit 85449d8409

View File

@@ -314,8 +314,9 @@ def add_gnu_specific_dso_flags(
# linked against executables, so we must allow undefined
# symbols for shared objects in some cases.
if not use_sanitizer_runtime:
# Don't allow undefined symbols in libraries
ldopts.append("-Wl,-z,defs")
if target.os != "WINNT":
# Don't allow undefined symbols in libraries
ldopts.append("-Wl,-z,defs")
# BSDs need `environ' exposed for posix_spawn (bug 753046)
if target.os in ("DragonFly", "FreeBSD", "NetBSD", "OpenBSD"):