meson: correctly detect linker arguments

Fixes: 22673a98 ("meson: Check arguments before adding")
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13961>
This commit is contained in:
Michel Zou 2021-11-25 21:51:07 +01:00 committed by Marge Bot
parent 7a22967de3
commit 631b3fe3e9
1 changed files with 2 additions and 2 deletions

View File

@ -1210,7 +1210,7 @@ if host_machine.system() == 'windows'
endif
else
add_project_link_arguments(
cc.get_supported_arguments(
cc.get_supported_link_arguments(
'-Wl,--nxcompat',
'-Wl,--dynamicbase',
'-static-libgcc',
@ -1219,7 +1219,7 @@ if host_machine.system() == 'windows'
language : ['c'],
)
add_project_link_arguments(
cpp.get_supported_arguments(
cpp.get_supported_link_arguments(
'-Wl,--nxcompat',
'-Wl,--dynamicbase',
'-static-libgcc',