gst-full: add linker flag to keep gst_init_static_plugins
Merged
requested to merge dabrain34/gst-build:dab_fix_undefined_gst_init_static_plugins_upstream into master
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
The migration is almost done, at least the rest should happen in the background. There are still a few technical difference between the old cluster and the new ones, and they are summarized in this issue. Please pay attention to the TL:DR at the end of the comment.
In a fully static link where an app link with gstreamer-full the gst_init_static_plugins can be discarded because no one references it. Indeed the symbol is looked up by gst_init to call if it exists and so it is not clearly referenced.
In order to avoid this issue, we use the linker flag --undefined=gst_init_static_plugins to keep the symbol.