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/libffmpeg/Makefile.am | |
| 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/libffmpeg/Makefile.am')
| -rw-r--r-- | src/libffmpeg/Makefile.am | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/libffmpeg/Makefile.am b/src/libffmpeg/Makefile.am index 50c9b183a..b6e1c2893 100644 --- a/src/libffmpeg/Makefile.am +++ b/src/libffmpeg/Makefile.am @@ -26,22 +26,19 @@ AM_CPPFLAGS = -I$(top_srcdir)/src/dxr3 $(X_CFLAGS) $(ff_cppflags) \ $(ZLIB_CPPFLAGS) xineplug_decode_ff_la_SOURCES = xine_decoder.c audio_decoder.c video_decoder.c \ xine_encoder.c mpeg_parser.c -# The dxr3 uses ffmpegs MPEG encoder by dlopen()ing the ffmpeg plugin and -# dlsym()ing the necessary function. Therefore we must allow more exported -# symbols and cannot use @XINE_PLUGIN_MIN_SYMS@ -xineplug_decode_ff_la_LDFLAGS = -avoid-version -module else AM_CPPFLAGS = $(ff_cppflags) $(ZLIB_CPPFLAGS) xineplug_decode_ff_la_SOURCES = xine_decoder.c audio_decoder.c video_decoder.c \ mpeg_parser.c -xineplug_decode_ff_la_LDFLAGS = -avoid-version -module @XINE_PLUGIN_MIN_SYMS@ \ - @IMPURE_TEXT_LDFLAGS@ endif +xineplug_decode_ff_la_CFLAGS = $(VISIBILITY_FLAG) +xineplug_decode_ff_la_LDFLAGS = -avoid-version -module @IMPURE_TEXT_LDFLAGS@ xineplug_decode_ff_la_LIBADD = $(MLIB_LIBS) $(XINE_LIB) -lm $(ZLIB_LIBS) \ $(link_ffmpeg) $(THREAD_LIBS) -xineplug_decode_dvaudio_la_LDFLAGS = -avoid-version -module @XINE_PLUGIN_MIN_SYMS@ +xineplug_decode_dvaudio_la_CFLAGS = $(VISIBILITY_FLAG) +xineplug_decode_dvaudio_la_LDFLAGS = -avoid-version -module xineplug_decode_dvaudio_la_SOURCES = dvaudio_decoder.c xineplug_decode_dvaudio_la_LIBADD = $(XINE_LIB) |
