diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2017-04-18 14:51:25 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2017-05-03 15:10:56 +0100 |
commit | 482f34006e6c9709a2f5a219ab6bcc5ff70e1aa0 (patch) | |
tree | 80e1a2e5a0cd214661b24186f02c0df1894de7a4 /gtk | |
parent | 47bcf66af8fa0f545b22c389fd712acb5d29f100 (diff) | |
download | gtk+-482f34006e6c9709a2f5a219ab6bcc5ff70e1aa0.tar.gz |
build: Use the appropriate linker flags
We need to check if the linker flags we use are available, depending on
the platform, and we need to ensure that the shared library is
versioned appropriately.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/meson.build | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/meson.build b/gtk/meson.build index 392895c822..f8bf7d55f1 100644 --- a/gtk/meson.build +++ b/gtk/meson.build @@ -876,12 +876,13 @@ endforeach # Library libgtk = shared_library('gtk-4', + soversion: gtk_soversion, sources: [typefuncs, gtk_sources, gtkmarshal_h, gtkprivatetypebuiltins_h], c_args: gtk_cargs + common_cflags, include_directories: [confinc, gdkinc, gtkinc], dependencies: gtk_deps + [libgdk_dep, libgsk_dep], link_with: [libgdk, libgsk, included_input_modules], - link_args: ['-Bsymbolic'], + link_args: common_ldflags, install: true) libgtk_dep = declare_dependency( @@ -889,7 +890,7 @@ libgtk_dep = declare_dependency( include_directories: [confinc, gtkinc], dependencies: gtk_deps + [libgdk_dep, libgsk_dep], link_with: libgtk, - link_args: ['-Bsymbolic']) + link_args: common_ldflags) # Installed tools |