Bug 1891452 - Port Bug 1867423: Change -nopie flag to -no-pie for Clang 18. r=rjl

Differential Revision: https://phabricator.services.mozilla.com/D210720

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Daniel Darnell 2024-05-23 17:18:39 +00:00
Родитель a1a56ee0fa
Коммит cdce77cb19
1 изменённых файлов: 3 добавлений и 5 удалений

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

@ -17,8 +17,6 @@ CFLAGS += [
# Use OS_LIBS instead of LDFLAGS to "force" the flag to come after -pie
# from MOZ_PROGRAM_LDFLAGS.
if CONFIG["CC_TYPE"] == "clang":
# clang < 5.0 doesn't support -no-pie.
OS_LIBS += ["-nopie"]
else:
OS_LIBS += ["-no-pie"]
OS_LIBS += [
"-no-pie",
]