From 631b3fe3e9e27302d48051f7d5bef5e4e1bb0e40 Mon Sep 17 00:00:00 2001 From: Michel Zou Date: Thu, 25 Nov 2021 21:51:07 +0100 Subject: [PATCH] meson: correctly detect linker arguments Fixes: 22673a98 ("meson: Check arguments before adding") Reviewed-by: Emma Anholt Part-of: --- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 07ef92dbff8..03dda9ee3e7 100644 --- a/meson.build +++ b/meson.build @@ -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',