[gnome-bluetooth] build: Use the full path to the linker script
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] build: Use the full path to the linker script
- Date: Wed, 15 Nov 2017 12:52:35 +0000 (UTC)
commit 18a6bc1bfd6c7a1dff117b3b2e10f2ea257b3043
Author: Iñigo Martínez <inigomartinez gmail com>
Date: Tue Nov 14 16:20:59 2017 +0100
build: Use the full path to the linker script
The symbol map represents the name of the linker script file.
However, it's more useful if it holds the full paths, because it
could be referenced from any other meson build file.
https://bugzilla.gnome.org/show_bug.cgi?id=790332
lib/meson.build | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/lib/meson.build b/lib/meson.build
index c2cc52b..b3669d1 100644
--- a/lib/meson.build
+++ b/lib/meson.build
@@ -82,13 +82,13 @@ cflags = [
'-DG_LOG_DOMAIN="Bluetooth"'
]
-symbol_map = meson.project_name() + '.map'
+symbol_map = join_paths(meson.current_source_dir(), meson.project_name() + '.map')
-ldflag = '-Wl,--version-script,@0@/@1@'.format(meson.current_source_dir(), symbol_map)
+test_ldflag = '-Wl,--version-script,' + symbol_map
ldflags = []
-if host_machine.system().contains('linux') and cc.has_argument(ldflag)
- ldflags += ldflag
+if cc.has_argument(test_ldflag)
+ ldflags += test_ldflag
endif
libgnome_bluetooth = shared_library(
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]