[gnome-builder/wip/tingping/version-script] build: Test if linker supports --version-script
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/tingping/version-script] build: Test if linker supports --version-script
- Date: Sat, 22 Jul 2017 05:49:01 +0000 (UTC)
commit 5340a10b9d53646e6061cd0d209b816b3894f4c6
Author: Patrick Griffis <tingping tingping se>
Date: Sat Jul 22 01:48:21 2017 -0400
build: Test if linker supports --version-script
meson.build | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/meson.build b/meson.build
index 851dbac..30b4ed0 100644
--- a/meson.build
+++ b/meson.build
@@ -159,6 +159,11 @@ configure_file(
configuration: conf
)
+ld_supports_version_script = cc.links('''
+ int main (void) { return 0; }
+''', args: '-Wl,--version-script,' + join_paths(meson.source_root(), 'libide/ide.map'))
+message('Linker supports --version-script: @0@'.format(ld_supports_version_script))
+
# Commonly used deps
libgio_dep = dependency('gio-2.0', version: '>= 2.53.2')
libgiounix_dep = dependency('gio-unix-2.0')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]