FFMpeg should have a FF_API to export its public symbols.
Following this issue and this comment, gstreamer/gst-build!204 (comment 652348) a proper fix to avoid having gloval var exported as public symbol, would be to use a FF_API as GST_API to control the public exposition of the symbols.