summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-03-11 12:02:00 +0100
committerMarcel Holtmann <marcel@holtmann.org>2009-03-11 12:02:00 +0100
commit92bd92f8514ee69f464e965ec465adb86ff882b9 (patch)
treebf5b465e6293bde6ad63fec9b27c4cbafb35bc9b /audio
parentfee17aefe6b727ec790568aa4994039ff94bf44e (diff)
Use GCC visibility for exporting symbols
Diffstat (limited to 'audio')
-rw-r--r--audio/Makefile.am14
-rw-r--r--audio/gstbluetooth.c2
2 files changed, 10 insertions, 6 deletions
diff --git a/audio/Makefile.am b/audio/Makefile.am
index 43030b8f..f5ca4ee2 100644
--- a/audio/Makefile.am
+++ b/audio/Makefile.am
@@ -13,8 +13,7 @@ audio_la_SOURCES = main.c \
nodist_audio_la_SOURCES = $(BUILT_SOURCES)
-audio_la_LDFLAGS = -module -avoid-version -no-undefined \
- -export-symbols-regex bluetooth_plugin_desc
+audio_la_LDFLAGS = -module -avoid-version -no-undefined
LDADD = $(top_builddir)/common/libhelper.a \
@GDBUS_LIBS@ @GLIB_LIBS@ @DBUS_LIBS@ @BLUEZ_LIBS@
@@ -49,13 +48,16 @@ libgstbluetooth_la_SOURCES = gstbluetooth.c \
gstsbcutil.h gstsbcutil.c \
gstrtpsbcpay.h gstrtpsbcpay.c \
rtp.h ipc.h ipc.c
-libgstbluetooth_la_LDFLAGS = -module -avoid-version -export-symbols-regex gst_plugin_desc
-libgstbluetooth_la_LIBADD = @SBC_LIBS@ @BLUEZ_LIBS@ @GSTREAMER_LIBS@ -lgstaudio-0.10 -lgstrtp-0.10
-libgstbluetooth_la_CFLAGS = @GSTREAMER_CFLAGS@ @BLUEZ_CFLAGS@ @SBC_CFLAGS@
+libgstbluetooth_la_LDFLAGS = -module -avoid-version
+libgstbluetooth_la_LIBADD = @SBC_LIBS@ @BLUEZ_LIBS@ @GSTREAMER_LIBS@ \
+ -lgstaudio-0.10 -lgstrtp-0.10
+libgstbluetooth_la_CFLAGS = -fvisibility=hidden \
+ @GSTREAMER_CFLAGS@ @BLUEZ_CFLAGS@ @SBC_CFLAGS@
endif
endif
-AM_CFLAGS = @BLUEZ_CFLAGS@ @DBUS_CFLAGS@ @GLIB_CFLAGS@ @GDBUS_CFLAGS@
+AM_CFLAGS = -fvisibility=hidden \
+ @BLUEZ_CFLAGS@ @DBUS_CFLAGS@ @GLIB_CFLAGS@ @GDBUS_CFLAGS@
CLEANFILES = $(BUILT_SOURCES)
diff --git a/audio/gstbluetooth.c b/audio/gstbluetooth.c
index 072b12ee..7775b48d 100644
--- a/audio/gstbluetooth.c
+++ b/audio/gstbluetooth.c
@@ -99,6 +99,8 @@ static gboolean plugin_init(GstPlugin *plugin)
return TRUE;
}
+extern GstPluginDesc gst_plugin_desc __attribute__ ((visibility("default")));
+
GST_PLUGIN_DEFINE(GST_VERSION_MAJOR, GST_VERSION_MINOR,
"bluetooth", "Bluetooth plugin library",
plugin_init, VERSION, "LGPL", "BlueZ", "http://www.bluez.org/")