diff --git a/meson.build b/meson.build index acc59c3f82b29e028c9d2c7c9ab8d466edeb0e8c..5faf86735942fab5c595a82f3f66e5ef37053275 100644 --- a/meson.build +++ b/meson.build @@ -100,8 +100,8 @@ c_compiler = meson.get_compiler('c') supported_warning_cflags = c_compiler.get_supported_arguments(warning_cflags) add_project_arguments(supported_warning_cflags, language : 'c') -add_project_arguments( - c_compiler.get_supported_arguments( +add_project_link_arguments( + c_compiler.get_supported_link_arguments( '-Wl,-z,origin', # Generate RPATH in preference to RUNPATH, even if RUNPATH is the # linker's default. We want RPATH here, because it's used recursively