[libgepub: 3/5] build: Improved linker script handling
- From: Daniel Garcia Moreno <danigm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgepub: 3/5] build: Improved linker script handling
- Date: Mon, 13 Nov 2017 07:04:14 +0000 (UTC)
commit 169bf8451dd3967979c8dda97ac72c2796168906
Author: Iñigo Martínez <inigomartinez gmail com>
Date: Mon Nov 13 07:43:12 2017 +0100
build: Improved linker script handling
This patch slightly improves the linker script handling, which now
uses the full path into the linker script option itself and also
as a dependency for the library.
libgepub/meson.build | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libgepub/meson.build b/libgepub/meson.build
index 6429e2e..2205090 100644
--- a/libgepub/meson.build
+++ b/libgepub/meson.build
@@ -21,13 +21,13 @@ sources = files(
'gepub-widget.c'
)
-symbol_map = 'gepub.map'
+symbol_map = join_paths(meson.current_souce_dir(), 'gepub.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
libgepub = library(
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]