зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1834543 - Remove `-lssp` flag for `_FORTIFY_SOURCE` in `mingw-clang` r=firefox-build-system-reviewers,glandium
See: https://www.msys2.org/news/#2022-10-10-libssp-is-no-longer-required Differential Revision: https://phabricator.services.mozilla.com/D179985
This commit is contained in:
Родитель
a05d8a7624
Коммит
8920993bf3
|
@ -2401,9 +2401,6 @@ def security_hardening_cflags(
|
||||||
if compiler_is_gccish and optimize and not asan:
|
if compiler_is_gccish and optimize and not asan:
|
||||||
flags.append("-U_FORTIFY_SOURCE")
|
flags.append("-U_FORTIFY_SOURCE")
|
||||||
flags.append("-D_FORTIFY_SOURCE=2")
|
flags.append("-D_FORTIFY_SOURCE=2")
|
||||||
if mingw_clang:
|
|
||||||
# mingw-clang needs to link in ssp which is not done by default
|
|
||||||
ldflags.append("-lssp")
|
|
||||||
|
|
||||||
# fstack-protector ------------------------------------
|
# fstack-protector ------------------------------------
|
||||||
# Enable only if hardening is not disabled and ASAN is
|
# Enable only if hardening is not disabled and ASAN is
|
||||||
|
|
Загрузка…
Ссылка в новой задаче