diff --git a/meson.build b/meson.build index 74c21663..8eb35ee7 100644 --- a/meson.build +++ b/meson.build @@ -92,7 +92,11 @@ if nolibc '-fno-stack-protector', language: 'c', ) - dep += declare_dependency(link_args: ['-nostdlib', '-nodefaultlibs']) + add_project_link_arguments( + '-nostdlib', + '-nodefaultlibs', + language: 'c', + ) endif zycore_dep = dependency(