[geocode-glib] Replace symbols file with a map
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geocode-glib] Replace symbols file with a map
- Date: Wed, 19 Jul 2017 12:01:56 +0000 (UTC)
commit 5cd4856c207e169aa535a9e32f3361b61af639b2
Author: Emmanuele Bassi <ebassi gnome org>
Date: Wed Jul 19 12:45:13 2017 +0100
Replace symbols file with a map
Map files are easier to maintain than flat symbols files.
geocode-glib/geocode-glib.map | 8 +++
geocode-glib/geocode-glib.symbols | 102 -------------------------------------
geocode-glib/meson.build | 6 +-
3 files changed, 11 insertions(+), 105 deletions(-)
---
diff --git a/geocode-glib/geocode-glib.map b/geocode-glib/geocode-glib.map
new file mode 100644
index 0000000..d5498ad
--- /dev/null
+++ b/geocode-glib/geocode-glib.map
@@ -0,0 +1,8 @@
+{
+ global:
+ geocode_*;
+ _geocode_parse_search_json;
+
+ local:
+ *;
+};
diff --git a/geocode-glib/meson.build b/geocode-glib/meson.build
index 8ccffca..8bc2bfc 100644
--- a/geocode-glib/meson.build
+++ b/geocode-glib/meson.build
@@ -42,14 +42,14 @@ if libm.found()
endif
include = include_directories('..')
-exports_file = join_paths(meson.current_source_dir(), 'geocode-glib.symbols')
-link_args = '-export-symbols ' + exports_file
+gclib_map = join_paths(meson.current_source_dir(), 'geocode-glib.map')
libgcglib = shared_library('geocode-glib',
sources,
dependencies: deps,
include_directories: include,
- link_args: link_args,
+ link_depends: gclib_map,
+ link_args: [ '-Wl,--version-script,' + gclib_map ],
soversion: '0',
version: '0.0.0',
install: true)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]