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:
ahochheiden 2023-06-05 23:30:00 +00:00
Родитель a05d8a7624
Коммит 8920993bf3
1 изменённых файлов: 0 добавлений и 3 удалений

Просмотреть файл

@ -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