summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2013-02-12 16:47:58 +0100
committerChristophe Fergeau <cfergeau@redhat.com>2013-03-23 22:16:24 +0100
commitdcb89aaffb9b7f45cfbf760e2575a7cab57edce1 (patch)
treefbe2e1dc488a94eb7e3d33a245b72f4901a8f02b
parentde800eebbfa876369ed38bc8a29962c3b308f9fa (diff)
Only export needed symbols
NPAPI plugins only need to have 3 symbols exported, make that explicit. This is also required when building Windows plugins as these symbols *must* be explicitly exported.
-rw-r--r--SpiceXPI/src/plugin/Makefile.am9
-rw-r--r--SpiceXPI/src/plugin/npapi-plugin.syms3
2 files changed, 11 insertions, 1 deletions
diff --git a/SpiceXPI/src/plugin/Makefile.am b/SpiceXPI/src/plugin/Makefile.am
index 3b7bd8d..bb50d21 100644
--- a/SpiceXPI/src/plugin/Makefile.am
+++ b/SpiceXPI/src/plugin/Makefile.am
@@ -8,7 +8,14 @@ plugindir=$(extensiondir)/plugins
plugin_LTLIBRARIES = npSpiceConsole.la
-npSpiceConsole_la_LDFLAGS = -avoid-version -module -no-undefined
+EXTRA_DIST = ${srcdir}/npapi-plugin.syms
+
+npSpiceConsole_la_LDFLAGS = \
+ -avoid-version \
+ -module \
+ -no-undefined \
+ -export-symbols ${srcdir}/npapi-plugin.syms \
+ $(NULL)
npSpiceConsole_la_CPPFLAGS = \
-I$(top_srcdir)/common \
-I$(srcdir)/npapi \
diff --git a/SpiceXPI/src/plugin/npapi-plugin.syms b/SpiceXPI/src/plugin/npapi-plugin.syms
new file mode 100644
index 0000000..d7c247b
--- /dev/null
+++ b/SpiceXPI/src/plugin/npapi-plugin.syms
@@ -0,0 +1,3 @@
+NP_GetEntryPoints
+NP_Initialize
+NP_Shutdown