aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Makefile.am3
-rw-r--r--plugin/icedteanp/IcedTeaNPPlugin.cc4
3 files changed, 11 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f565267..ad6620b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-08-07 Thomas Meyer <[email protected]>
+
+ * plugin/icedteanp/IcedTeaNPPlugin.cc: only export NP_GetMIMEDescription,
+ NP_GetValue, NP_Initialize and NP_Shutdown. This should fix PR472.
+
2012-08-07 Saad Mohammad <[email protected]>
Added license header to files without one.
diff --git a/Makefile.am b/Makefile.am
index 16fa1c6..299215b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -270,6 +270,7 @@ $(PLUGIN_DIR)/%.o: $(PLUGIN_SRCDIR)/%.cc
$(GLIB_CFLAGS) \
$(GTK_CFLAGS) \
$(MOZILLA_CFLAGS) \
+ -fvisibility=hidden \
-fPIC -o $@ -c $<
$(PLUGIN_DIR)/$(BUILT_PLUGIN_LIBRARY): $(addprefix $(PLUGIN_DIR)/,$(PLUGIN_OBJECTS))
@@ -278,7 +279,7 @@ $(PLUGIN_DIR)/$(BUILT_PLUGIN_LIBRARY): $(addprefix $(PLUGIN_DIR)/,$(PLUGIN_OBJEC
$(PLUGIN_OBJECTS) \
$(GLIB_LIBS) \
$(GTK_LIBS) \
- $(MOZILLA_LIBS)\
+ $(MOZILLA_LIBS) \
-shared -o $@
clean-IcedTeaPlugin:
diff --git a/plugin/icedteanp/IcedTeaNPPlugin.cc b/plugin/icedteanp/IcedTeaNPPlugin.cc
index 1012812..6c6b87f 100644
--- a/plugin/icedteanp/IcedTeaNPPlugin.cc
+++ b/plugin/icedteanp/IcedTeaNPPlugin.cc
@@ -2112,6 +2112,7 @@ initialize_plugin_table(NPPluginFuncs* pluginTable)
// this function, then it is evident that NP_Initialize has already
// been called. There is no need to call this function more than once and
// this workaround avoids any duplicate calls.
+__attribute__ ((visibility ("default")))
NPError
NP_Initialize (NPNetscapeFuncs* browserTable, NPPluginFuncs* pluginTable)
{
@@ -2314,6 +2315,7 @@ NP_Initialize (NPNetscapeFuncs* browserTable, NPPluginFuncs* pluginTable)
// Returns a string describing the MIME type that this plugin
// handles.
+__attribute__ ((visibility ("default")))
#ifdef LEGACY_XULRUNNERAPI
char*
#else
@@ -2330,6 +2332,7 @@ NP_GetMIMEDescription ()
// Returns a value relevant to the plugin as a whole. The browser
// calls this function to obtain information about the plugin.
+__attribute__ ((visibility ("default")))
NPError
NP_GetValue (void* future, NPPVariable variable, void* value)
{
@@ -2363,6 +2366,7 @@ NP_GetValue (void* future, NPPVariable variable, void* value)
// Shuts down the plugin. Called after the last plugin instance is
// destroyed.
+__attribute__ ((visibility ("default")))
NPError
NP_Shutdown (void)
{