[gtk+] build: Add common flags to GDK backends
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] build: Add common flags to GDK backends
- Date: Wed, 3 May 2017 14:32:17 +0000 (UTC)
commit 9e8ba70d6905a7d7ddb45307ca06a1d627490480
Author: Emmanuele Bassi <ebassi gnome org>
Date: Fri Apr 28 22:26:32 2017 +0100
build: Add common flags to GDK backends
The common compiler and linker flags control, among other things, the
default visibility of symbols; without them, we leak symbols that ought
to be private.
gdk/broadway/meson.build | 7 ++++++-
gdk/wayland/meson.build | 3 ++-
gdk/x11/meson.build | 3 ++-
3 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/gdk/broadway/meson.build b/gdk/broadway/meson.build
index b80e134..666fb6a 100644
--- a/gdk/broadway/meson.build
+++ b/gdk/broadway/meson.build
@@ -35,7 +35,12 @@ gdk_broadway_deps = [shmlib]
libgdk_broadway = static_library('gdk-broadway',
gdk_broadway_sources, gdkconfig, gdkenum_h,
include_directories: [confinc, gdkinc],
- c_args: ['-DGDK_COMPILATION', '-DG_LOG_DOMAIN="Gdk"'],
+ c_args: [
+ '-DGDK_COMPILATION',
+ '-DG_LOG_DOMAIN="Gdk"',
+ '-DG_LOG_USE_STRUCTURED=1',
+ ] + common_cflags,
+ link_args: common_ldflags,
dependencies: [gdk_deps, gdk_broadway_deps])
# gtk4-broadwayd
diff --git a/gdk/wayland/meson.build b/gdk/wayland/meson.build
index ff5674f..1753ef9 100644
--- a/gdk/wayland/meson.build
+++ b/gdk/wayland/meson.build
@@ -99,5 +99,6 @@ libgdk_wayland = static_library('gdk-wayland',
'-DGDK_COMPILATION',
'-DG_LOG_DOMAIN="Gdk"',
'-DG_LOG_USE_STRUCTURED=1',
- ],
+ ] + common_cflags,
+ link_args: common_ldflags,
dependencies: [ gdk_deps, gdk_wayland_deps, ])
diff --git a/gdk/x11/meson.build b/gdk/x11/meson.build
index ca63423..5cc6e98 100644
--- a/gdk/x11/meson.build
+++ b/gdk/x11/meson.build
@@ -74,5 +74,6 @@ libgdk_x11 = static_library('gdk-x11',
'-DGDK_COMPILATION',
'-DG_LOG_DOMAIN="Gdk"',
'-DG_LOG_USE_STRUCTURED=1',
- ],
+ ] + common_cflags,
+ link_args: common_ldflags,
dependencies: [ gdk_deps, gdk_x11_deps, ])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]