[gnome-multi-writer] Use newer meson features to avoid a build warning
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-multi-writer] Use newer meson features to avoid a build warning
- Date: Thu, 7 Feb 2019 10:38:37 +0000 (UTC)
commit ea7858587057b6955d9c7f572e767f0e0e95965e
Author: Richard Hughes <richard hughsie com>
Date: Thu Feb 7 10:38:21 2019 +0000
Use newer meson features to avoid a build warning
meson.build | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/meson.build b/meson.build
index 1a9ff07..4e7b5ce 100644
--- a/meson.build
+++ b/meson.build
@@ -1,7 +1,7 @@
project('gnome-multi-writer', 'c',
version : '3.30.0',
default_options : ['warning_level=1'],
- meson_version : '>=0.37.0'
+ meson_version : '>=0.46.0'
)
conf = configuration_data()
@@ -63,20 +63,15 @@ endforeach
# enable full RELRO where possible
# FIXME: until https://github.com/mesonbuild/meson/issues/1140 is fixed
-global_link_args = []
test_link_args = [
'-Wl,-z,relro',
'-Wl,-z,now',
]
foreach arg: test_link_args
- if cc.has_argument(arg)
- global_link_args += arg
+ if cc.has_link_argument(arg)
+ add_project_link_arguments(arg, language : 'c')
endif
endforeach
-add_global_link_arguments(
- global_link_args,
- language: 'c',
-)
prefixed_localedir = join_paths(get_option('prefix'), get_option('localedir'))
prefixed_libexecdir = join_paths(get_option('prefix'), get_option('libexecdir'))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]