diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2013-02-12 16:47:58 +0100 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2013-03-14 11:10:09 +0100 |
commit | 4ecc97f7f0b90e49e6672a3cb2b937d5d6f9c708 (patch) | |
tree | fbe2e1dc488a94eb7e3d33a245b72f4901a8f02b | |
parent | 1064357f11e5bacfb316273b9f92283b0380c067 (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.am | 9 | ||||
-rw-r--r-- | SpiceXPI/src/plugin/npapi-plugin.syms | 3 |
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 |