diff options
author | Ignacio Casal Quinteiro <qignacio@amazon.com> | 2018-10-03 16:12:49 +0200 |
---|---|---|
committer | Ignacio Casal Quinteiro <qignacio@amazon.com> | 2018-10-04 09:34:01 +0200 |
commit | 2335d2191d599cb539a97a64bd76735cf0e9ec85 (patch) | |
tree | 9168bce3cc4b2087f1e0333b119a33ee02f4c4a8 /gdk-pixbuf | |
parent | 3fbed84f30067fdbf547bb8bdb668e02e462214b (diff) | |
download | gdk-pixbuf-2335d2191d599cb539a97a64bd76735cf0e9ec85.tar.gz |
Workaround to install modules with .so suffix on osx
The old autotools build system was create .so files instead of dylib
and G_MODULE_SUFFIX does not take into account dylib suffixes so
we should at least for now use .so until we have a better api to
use than the one provided by gmodule.
Diffstat (limited to 'gdk-pixbuf')
-rw-r--r-- | gdk-pixbuf/meson.build | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdk-pixbuf/meson.build b/gdk-pixbuf/meson.build index 9a1083a93..166d23140 100644 --- a/gdk-pixbuf/meson.build +++ b/gdk-pixbuf/meson.build @@ -243,6 +243,12 @@ foreach l: loaders sources = l[1] cond = l.get(2, true) cflags = l.get(3, []) + name_suffix = [] + + # FIXME: workaround for https://gitlab.gnome.org/GNOME/glib/issues/1413 + if host_system == 'darwin' + name_suffix = 'so' + endif if cond and not (builtin_loaders.contains(name) or builtin_all_loaders) mod = shared_module('pixbufloader-@0@'.format(name), @@ -250,6 +256,7 @@ foreach l: loaders dependencies: loaders_deps + gdk_pixbuf_deps + [ gdkpixbuf_dep ], include_directories: [ root_inc, gdk_pixbuf_inc ], c_args: common_cflags + gdk_pixbuf_cflags + cflags, + name_suffix: name_suffix, install: true, install_dir: gdk_pixbuf_loaderdir) |