mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-24 00:20:06 +01:00
Meson: Add export-dynamic flag
https://bugzilla.gnome.org/show_bug.cgi?id=788773
This commit is contained in:
parent
53d3455e75
commit
487b1fd20c
@ -118,7 +118,7 @@ pkg.generate(libraries : [libgmodule, thread_dep],
|
|||||||
description : 'Dynamic module loader for GLib',
|
description : 'Dynamic module loader for GLib',
|
||||||
)
|
)
|
||||||
|
|
||||||
pkg.generate(libraries : [libgmodule],
|
pkg.generate(libraries : [libgmodule, export_dynamic_ldflags],
|
||||||
requires : ['glib-2.0'],
|
requires : ['glib-2.0'],
|
||||||
version : glib_version,
|
version : glib_version,
|
||||||
variables : [supported_var],
|
variables : [supported_var],
|
||||||
@ -128,7 +128,7 @@ pkg.generate(libraries : [libgmodule],
|
|||||||
description : 'Dynamic module loader for GLib',
|
description : 'Dynamic module loader for GLib',
|
||||||
)
|
)
|
||||||
|
|
||||||
pkg.generate(libraries : [libgmodule],
|
pkg.generate(libraries : [libgmodule, export_dynamic_ldflags],
|
||||||
requires : ['glib-2.0'],
|
requires : ['glib-2.0'],
|
||||||
version : glib_version,
|
version : glib_version,
|
||||||
variables : [supported_var],
|
variables : [supported_var],
|
||||||
|
16
meson.build
16
meson.build
@ -1770,7 +1770,21 @@ if libmount_dep.length() != 0
|
|||||||
glib_conf.set('HAVE_LIBMOUNT', 1)
|
glib_conf.set('HAVE_LIBMOUNT', 1)
|
||||||
endif
|
endif
|
||||||
glib_conf.set('GIO_MODULE_DIR', glib_giomodulesdir)
|
glib_conf.set('GIO_MODULE_DIR', glib_giomodulesdir)
|
||||||
# FIXME: Missing: @G_MODULE_LDFLAGS@
|
|
||||||
|
# Sadly Meson does not expose this value:
|
||||||
|
# https://github.com/mesonbuild/meson/pull/3460
|
||||||
|
if host_system == 'windows'
|
||||||
|
# Autotools explicitly removed --Wl,--export-all-symbols from windows builds,
|
||||||
|
# with no explanation. Do the same here for now but this could be revisited if
|
||||||
|
# if causes issues.
|
||||||
|
export_dynamic_ldflags = []
|
||||||
|
elif host_system == 'cygwin'
|
||||||
|
export_dynamic_ldflags = ['-Wl,--export-all-symbols']
|
||||||
|
elif host_system == 'darwin'
|
||||||
|
export_dynamic_ldflags = []
|
||||||
|
else
|
||||||
|
export_dynamic_ldflags = ['-Wl,--export-dynamic']
|
||||||
|
endif
|
||||||
|
|
||||||
win32_cflags = []
|
win32_cflags = []
|
||||||
win32_ldflags = []
|
win32_ldflags = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user