[gnome-bluetooth: 8/14] build: Add proper linker support check
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth: 8/14] build: Add proper linker support check
- Date: Fri, 11 Jan 2019 11:23:30 +0000 (UTC)
commit aac29ac554ef62f4b5833cae846d7ef856508588
Author: Iñigo Martínez <inigomartinez gmail com>
Date: Fri Dec 21 10:48:30 2018 +0100
build: Add proper linker support check
Since meson 0.46[0], meson has added support for checking properly
link flags support. `version-script` link flag check has been
changed to take advantage of this support.
[0] http://mesonbuild.com/Release-notes-for-0-46-0.html#new-functions-has_link_argument-and-friends
lib/meson.build | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
---
diff --git a/lib/meson.build b/lib/meson.build
index c7afd18f..5d6d60b1 100644
--- a/lib/meson.build
+++ b/lib/meson.build
@@ -79,13 +79,7 @@ cflags = [
]
symbol_map = meson.current_source_dir() / (meson.project_name() + '.map')
-
-test_ldflag = '-Wl,--version-script,' + symbol_map
-ldflags = []
-
-if cc.has_argument(test_ldflag)
- ldflags += test_ldflag
-endif
+ldflags = cc.get_supported_link_arguments('-Wl,--version-script,' + symbol_map)
libgnome_bluetooth = shared_library(
meson.project_name(),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]