GNOME Bugzilla – Bug 793584
meson: Use .dylib suffix if darwin
Last modified: 2018-02-23 23:13:43 UTC
Created attachment 368541 [details] [review] meson: Use .dylib suffix if darwin For Mac OS, GST_EXTRA_MODULE_SUFFIX should be set as '.dylib'. Otherwise, GStreamer fails to load its plugins.
Unclear whether this needs fixing in Meson or not, apparently autotools is the exception to the rule here by creating .so files. In any case, doesn't hurt to add the extra prefix. commit 580e3a799e588f751cbd2ad6d344b67801f1706e Author: Justin Kim <justin.kim@collabora.com> Date: Mon Feb 19 15:39:46 2018 +0900 meson: Use .dylib suffix if darwin For Mac OS, GST_EXTRA_MODULE_SUFFIX should be set as '.dylib'. Otherwise, GStreamer fails to load its plugins. https://bugzilla.gnome.org/show_bug.cgi?id=793584
On OS X, .dylib is the standard extension for linkable libraries whereas .so (or sometimes .bundle) is standard for runtime loadable modules. There is a linker-level difference, so different extensions to coincide with it. On linux, I don't think there is a binary difference and .so is used everywhere.
Thanks. There is a Meson issue related to this with more background, and iirc the conclusion was that most other build systems (other than autotools) also output .dylib for modules. In any case, this may or may not be an issue in Meson, but until it's fixed in meson we need to check the extra suffix to make sure our built plugins are picked up.