[gnome-desktop/mcatanzaro/version-script] Add a linker version script
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-desktop/mcatanzaro/version-script] Add a linker version script
- Date: Thu, 21 Feb 2019 06:04:20 +0000 (UTC)
commit 41da17149d56963a6ad9c2edea0a9c4337d26402
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Thu Feb 21 00:03:21 2019 -0600
Add a linker version script
Life without -export-symbols-regex, the only useful libtool feature :(
libgnome-desktop/meson.build | 6 ++++++
libgnome-desktop/symbol.map | 7 +++++++
2 files changed, 13 insertions(+)
---
diff --git a/libgnome-desktop/meson.build b/libgnome-desktop/meson.build
index c365b448..fe6d03b1 100644
--- a/libgnome-desktop/meson.build
+++ b/libgnome-desktop/meson.build
@@ -82,12 +82,18 @@ gnome_desktop_deps = [
seccomp_dep
]
+ldflags = []
+if cc.has_link_argument('-Wl,--version-script')
+ ldflags += '-Wl,--version-script=@0@'.format(meson.current_source_dir() / 'symbol.map')
+endif
+
libgnome_desktop = library('gnome-desktop-3',
libgnome_desktop_sources,
dependencies: [gnome_desktop_deps, m_dep, rt_dep, x_dep],
soversion: soversion,
version: libversion,
c_args: libargs,
+ link_args: ldflags,
install: true
)
diff --git a/libgnome-desktop/symbol.map b/libgnome-desktop/symbol.map
new file mode 100644
index 00000000..1b65ea31
--- /dev/null
+++ b/libgnome-desktop/symbol.map
@@ -0,0 +1,7 @@
+{
+global:
+ gnome_*;
+local:
+ *;
+};
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]