[glib-networking: 125/129] Install module with so suffix on osx



commit b053184b30ceef198646284f2053da6afb7d2388
Author: Ignacio Casal Quinteiro <qignacio amazon com>
Date:   Wed Oct 3 17:37:39 2018 +0200

    Install module with so suffix on osx
    
    This is because glib expects the modules to have the so suffix
    instead of the dylib one that meson defaults to.

 tls/openssl/meson.build | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/tls/openssl/meson.build b/tls/openssl/meson.build
index 890afd0..24caa85 100644
--- a/tls/openssl/meson.build
+++ b/tls/openssl/meson.build
@@ -22,10 +22,18 @@ tlsopenssl_dep = declare_dependency(link_with: tlsopenssl,
                                     include_directories: include_directories('.', '../base'),
                                     dependencies: platform_deps)
 
+name_suffix = []
+
+# FIXME: workaround for https://gitlab.gnome.org/GNOME/glib/issues/1413
+if host_system == 'darwin'
+  name_suffix = 'so'
+endif
+
 gioopenssl = shared_module('gioopenssl',
                            tlsopenssl_sources,
                            dependencies: [tlsopenssl_dep],
                            include_directories: config_h_include,
+                           name_suffix: name_suffix,
                            install: true,
                            install_dir: gio_module_dir,
                            c_args: [extra_args + common_flags])


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]