Commit 3c801e70 authored by Jens Georg's avatar Jens Georg

Add version script to limit exported functions

parent e2935550
......@@ -37,6 +37,7 @@ EXTRA_DIST = \
meson.build \
gexiv2/meson.build \
gexiv2/gexiv2-version.h.meson \
gexiv2/gexiv2.map \
vapi/meson.build \
test/meson.build \
meson_options.txt
......@@ -144,6 +145,7 @@ lib@PACKAGE_NAME@_la_CPPFLAGS = $(EXIV2_CFLAGS) $(GLIB_CFLAGS)
lib@PACKAGE_NAME@_la_LDFLAGS = \
$(no_undefined) -export-dynamic -version-info $(GEXIV2_VERSION_INFO) \
-Wl,--version-script=$(srcdir)/gexiv2/gexiv2.map \
$(WARN_LDFLAGS)
clean-local:
......
{
global:
gexiv2_*;
local:
*;
};
......@@ -33,6 +33,10 @@ enum_sources = gnome.mkenums('gexiv2-enums',
install_headers(gexiv2_headers, subdir : 'gexiv2')
# Static map file
mapfile = 'gexiv2.map'
vflag = '-Wl,--version-script,@0@/@1@'.format(meson.current_source_dir(), mapfile)
gexiv2 = library('gexiv2',
['gexiv2-metadata.cpp',
'gexiv2-metadata-exif.cpp',
......@@ -52,6 +56,7 @@ gexiv2 = library('gexiv2',
gexiv2_headers +
[version_header] +
enum_sources,
link_args : vflag,
include_directories : include_directories('..'),
version : '2',
soversion: '2.0.0',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment