From a4f711e9e5ff2c6f6488e20e48a462890f31ffca Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Cerveau?= Date: Tue, 20 Oct 2020 12:45:59 +0200 Subject: [PATCH] gst-full: add linker flag to keep gst_init_static_plugins 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. Part-of: --- meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/meson.build b/meson.build index 725a91d..010a0f4 100644 --- a/meson.build +++ b/meson.build @@ -318,6 +318,7 @@ if get_option('default_library') == 'static' ) pkgconfig.generate(gstfull, requires: glib_deps, + libraries_private: cc.get_supported_link_arguments(['-Wl,--undefined=gst_init_static_plugins']), subdirs : 'gstreamer-1.0') meson.override_dependency('gstreamer-full-1.0', gst_full_dep) endif -- 2.7.4