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