A number of functions in C++ have default visibility. To avoid those
symbols being erroneously available to those who load the liblttng-ctl
library, a version script has been added to set the visibility of all
name-mangled symbols to local.
Change-Id: If2df7cfbadb0d1b9d3747cdf4990cbc942118e6f
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
liblttng_ctl_la_LDFLAGS = \
$(LT_NO_UNDEFINED) \
- -export-symbols $(srcdir)/liblttng-ctl.sym
+ -export-symbols $(srcdir)/liblttng-ctl.sym \
+ -Wl,--version-script=$(srcdir)/liblttng-ctl.map
EXTRA_liblttng_ctl_la_DEPENDENCIES = liblttng-ctl.sym
-EXTRA_DIST = liblttng-ctl.sym
+EXTRA_DIST = liblttng-ctl.map \
+ liblttng-ctl.sym
liblttng_ctl_la_LIBADD = \
$(top_builddir)/src/common/libsessiond-comm.la \
--- /dev/null
+{
+ local:
+ _Z*;
+};