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:
parent
7a22967de3
commit
631b3fe3e9
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue