summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-06-17 21:07:32 +0200
committerLennart Poettering <lennart@poettering.net>2008-06-17 21:07:32 +0200
commit756e554d5003b9d287825e45f7184142fbd67df2 (patch)
treeab731da2f6e85461e673237bf42eb074f4e1da6d
parent8a4512e83548294cb1567f27e0b9f7faea6ef8db (diff)
hide unprefixed driver symbols in libcanberra.so to avoid name clashes
-rw-r--r--src/Makefile.am4
-rw-r--r--src/map-file10
2 files changed, 13 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index cf59b2e..d985ef3 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -52,7 +52,9 @@ libcanberra_la_CFLAGS = \
libcanberra_la_LIBADD = \
$(VORBIS_LIBS)
libcanberra_la_LDFLAGS = \
- -export-dynamic -version-info 0:2:0
+ -export-dynamic \
+ -version-info 0:2:0 \
+ -Wl,-version-script=$(srcdir)/map-file
plugin_LTLIBRARIES =
diff --git a/src/map-file b/src/map-file
new file mode 100644
index 0000000..2265ed0
--- /dev/null
+++ b/src/map-file
@@ -0,0 +1,10 @@
+CANBERRA_0 {
+local:
+driver_cache;
+driver_cancel;
+driver_change_device;
+driver_change_props;
+driver_destroy;
+driver_open;
+driver_play;
+};