diff options
author | Richard Hughes <richard@hughsie.com> | 2019-11-28 18:33:23 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2019-12-03 16:16:17 +0000 |
commit | 2d6aa6b6cb9eda1f6fb53e67bd246679f9993a51 (patch) | |
tree | 10c1e82223a194a9019f3b6cdfc9d50b7fbe7717 | |
parent | 9eaa1138f55be396d3a19f2e6e2175fd9307cefc (diff) | |
download | gusb-2d6aa6b6cb9eda1f6fb53e67bd246679f9993a51.tar.gz |
Use has_link_argument() to detect linker flags
-rw-r--r-- | meson.build | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meson.build b/meson.build index 62b974f..a9e2ba9 100644 --- a/meson.build +++ b/meson.build @@ -1,7 +1,7 @@ project('libgusb', 'c', version : '0.3.2', license : 'LGPL-2.1+', - meson_version : '>=0.37.0', + meson_version : '>=0.46.0', default_options : ['c_std=c99'] ) @@ -84,7 +84,7 @@ test_link_args = [ '-Wl,-z,now', ] foreach arg: test_link_args - if cc.has_argument(arg) + if cc.has_link_argument(arg) global_link_args += arg endif endforeach |