summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStéphane Cerveau <scerveau@collabora.com>2020-10-22 11:55:43 +0200
committerGuillaume Desmottes <guillaume.desmottes@collabora.com>2020-10-28 14:15:52 +0000
commit94260955ba9a5929b01e64b3094e760a24698ce0 (patch)
treedc90dfba3d58af4c1e3eed6b2daf9b94b67118b0
parent89176610d2a461536d1e3ccd2a10f266ac02b394 (diff)
gst-full: add warning for gst_init_static_plugins
As some compiler might not supported -Wl,--undefined add a warning to the meson configure stage. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-build/-/merge_requests/211>
-rw-r--r--meson.build6
1 files changed, 5 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 010a0f4..ec582e2 100644
--- a/meson.build
+++ b/meson.build
@@ -316,9 +316,13 @@ if get_option('default_library') == 'static'
dependencies : incdir_deps + glib_deps,
include_directories: include_directories('.')
)
+ gst_full_libs_private = cc.get_supported_link_arguments(['-Wl,--undefined=gst_init_static_plugins'])
+ if gst_full_libs_private == []
+ warning('The compiler does not support `-Wl,--undefined` linker flag. The method `gst_init_static_plugins` might be dropped during the link stage of an application using libgstreamer-full-1.0.a, preventing plugins registration.')
+ endif
pkgconfig.generate(gstfull,
requires: glib_deps,
- libraries_private: cc.get_supported_link_arguments(['-Wl,--undefined=gst_init_static_plugins']),
+ libraries_private: gst_full_libs_private,
subdirs : 'gstreamer-1.0')
meson.override_dependency('gstreamer-full-1.0', gst_full_dep)
endif