summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2012-07-17 06:10:12 +0200
committerMarcel Holtmann <marcel@holtmann.org>2012-07-29 20:01:51 -0700
commit77d350e55c33fda59ed93cbf617dc87715322f6a (patch)
tree6c34f3d58958847b72725338d9a373c06d8328f8
parentfa39dea564998079a5c31fdcdc3cebada0ee8f9a (diff)
downloadsbc-77d350e55c33fda59ed93cbf617dc87715322f6a.tar.gz
build: Add symbol table for library
-rw-r--r--Makefile.am7
-rw-r--r--sbc/sbc.sym17
2 files changed, 23 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index dabc6c8..b48b39f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -26,7 +26,10 @@ lib_LTLIBRARIES = sbc/libsbc.la
sbc_libsbc_la_SOURCES = $(sbc_headers) $(sbc_sources)
sbc_libsbc_la_LDFLAGS = -no-undefined \
- -version-info $(SBC_CURRENT):$(SBC_REVISION):$(SBC_AGE)
+ -version-info $(SBC_CURRENT):$(SBC_REVISION):$(SBC_AGE) \
+ -Wl,--version-script=$(top_srcdir)/sbc/sbc.sym
+
+sbc_libsbc_la_DEPENDENCIES = sbc/sbc.sym
if TOOLS
noinst_LTLIBRARIES = sbc/libsbc-private.la
@@ -58,6 +61,8 @@ pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = sbc/sbc.pc
+EXTRA_DIST = sbc/sbc.sym
+
MAINTAINERCLEANFILES = Makefile.in \
aclocal.m4 configure config.h.in config.sub config.guess \
ltmain.sh depcomp compile missing install-sh mkinstalldirs
diff --git a/sbc/sbc.sym b/sbc/sbc.sym
new file mode 100644
index 0000000..b9d6de7
--- /dev/null
+++ b/sbc/sbc.sym
@@ -0,0 +1,17 @@
+SBC_0 {
+global:
+ sbc_init;
+ sbc_reinit;
+ sbc_finish;
+
+ sbc_parse;
+ sbc_decode;
+ sbc_encode;
+
+ sbc_get_frame_length;
+ sbc_get_frame_duration;
+ sbc_get_codesize;
+ sbc_get_implementation_info;
+local:
+ *;
+};