From 97a81e4f77a795ad24500acbc7c05059c0045cac Mon Sep 17 00:00:00 2001 From: Simon McVittie <smcv@collabora.com> Date: Mon, 11 Nov 2019 16:30:15 +0000 Subject: [PATCH] build: Separate out linker options Meson warns that get_supported_arguments() is wrong for linker options like these. Signed-off-by: Simon McVittie <smcv@collabora.com> --- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index acc59c3f8..5faf86735 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 -- GitLab