[libdazzle] build: avoid version-script on non-Linux
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] build: avoid version-script on non-Linux
- Date: Sat, 2 Sep 2017 23:55:21 +0000 (UTC)
commit 0f17be8ae160141acee8aec35e04608d39012b69
Author: Christian Hergert <chergert redhat com>
Date: Sat Sep 2 16:54:33 2017 -0700
build: avoid version-script on non-Linux
We can't use version-script on OS X, and I've only tested that version
script actually works on Linux. So be more safe here in what we know we
support.
We should probably switch to the GDK_AVAILABLE_IN_* style macros.
src/meson.build | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/meson.build b/src/meson.build
index 95652e8..42b0d62 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -85,6 +85,11 @@ endif
libdazzle_map = join_paths(meson.current_source_dir(), 'dazzle.map')
+libdazzle_link_args = []
+if host_machine.system() == 'linux'
+libdazzle_link_args += [ '-Wl,--version-script,' + libdazzle_map ]
+endif
+
libdazzle = shared_library(
'dazzle-' + apiversion,
libdazzle_sources,
@@ -92,7 +97,7 @@ libdazzle = shared_library(
soversion: 0,
link_depends: libdazzle_map,
c_args: libdazzle_args,
- link_args: [ '-Wl,--version-script,' + libdazzle_map ],
+ link_args: libdazzle_link_args,
dependencies: libdazzle_deps,
include_directories: [ root_inc, src_inc ],
install: true,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]