diff --git a/gio/tests/meson.build b/gio/tests/meson.build index de5b80d72..3557b6944 100644 --- a/gio/tests/meson.build +++ b/gio/tests/meson.build @@ -928,12 +928,8 @@ if not meson.is_cross_build() test_resources_binary = custom_target('test_resources.o', input : test_gresource_binary, output : 'test_resources.o', - command : [ld, - '-z', 'noexecstack', - '-r', - '-b','binary', - '@INPUT@', - '-o','@OUTPUT@']) + command : cc.cmd_array() + ['-Wl,-z,noexecstack', '-r', '-Wl,-b,binary', + '@INPUT@', '-o','@OUTPUT@']) # Rename symbol to match the one in the C file if cc.get_id() == 'gcc' and host_system == 'windows'