diff options
| author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2006-07-10 22:08:12 +0000 |
|---|---|---|
| committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2006-07-10 22:08:12 +0000 |
| commit | e70c5600f5653c6915931717bdd52f9a6a2f2d9d (patch) | |
| tree | a0d5282f9deb660def1026701c8e68a273099ede /src/post/goom | |
| parent | 32ad3ca6265c8cbac584dd3510109b920415a8e1 (diff) | |
| download | xine-lib-e70c5600f5653c6915931717bdd52f9a6a2f2d9d.tar.gz xine-lib-e70c5600f5653c6915931717bdd52f9a6a2f2d9d.tar.bz2 | |
Implement visibility support, available on GCC 4.0 and later and on some 3.4 (through backports), to avoid exporting unneeded internal symbols, making plugins' loading faster and use of internal copies of libraries more solid. It should automatically fall back to the old way in GCCs that does not support -fvisibility=hidden, but has to be tested carefully. No issues were found in the months of testing in Gentoo, but this requires special attention anyway.
CVS patchset: 8101
CVS date: 2006/07/10 22:08:12
Diffstat (limited to 'src/post/goom')
| -rw-r--r-- | src/post/goom/Makefile.am | 3 | ||||
| -rw-r--r-- | src/post/goom/xine_goom.c | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/post/goom/Makefile.am b/src/post/goom/Makefile.am index 3fd80e8a7..5905c16cf 100644 --- a/src/post/goom/Makefile.am +++ b/src/post/goom/Makefile.am @@ -29,7 +29,8 @@ xineplug_post_goom_la_SOURCES = $(extra_files) xine_goom.c \ goomsl_lex.c goomsl_yacc.c graphic.c ifs.c lines.c \ plugin_info.c sound_tester.c surf3d.c tentacle3d.c v3d.c xineplug_post_goom_la_LIBADD = $(XINE_LIB) $(GOOM_LIBS) $(THREAD_LIBS) -xineplug_post_goom_la_LDFLAGS = -avoid-version -module $(XINE_PLUGIN_MIN_SYMS) +xineplug_post_goom_la_CFLAGS = $(VISIBILITY_FLAG) +xineplug_post_goom_la_LDFLAGS = -avoid-version -module noinst_HEADERS = cpu_info.h default_scripts.h drawmethods.h gfontlib.h goom.h \ goom_config.h goom_config_param.h goom_filters.h goom_fx.h goom_graphic.h \ diff --git a/src/post/goom/xine_goom.c b/src/post/goom/xine_goom.c index c9cfb69a0..91667c43d 100644 --- a/src/post/goom/xine_goom.c +++ b/src/post/goom/xine_goom.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine_goom.c,v 1.61 2006/06/02 22:13:45 dsalt Exp $ + * $Id: xine_goom.c,v 1.62 2006/07/10 22:08:44 dgp85 Exp $ * * GOOM post plugin. * @@ -112,7 +112,7 @@ static const post_info_t goom_special_info = { XINE_POST_TYPE_AUDIO_VISUALIZATION }; -const plugin_info_t xine_plugin_info[] = { +const plugin_info_t xine_plugin_info[] EXPORTED = { /* type, API, "name", version, special_info, init_function */ { PLUGIN_POST | PLUGIN_MUST_PRELOAD, 9, "goom", XINE_VERSION_CODE, &goom_special_info, &goom_init_plugin }, { PLUGIN_NONE, 0, "", 0, NULL, NULL } |
