diff options
Diffstat (limited to 'src/fe-gtk/meson.build')
-rw-r--r-- | src/fe-gtk/meson.build | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/fe-gtk/meson.build b/src/fe-gtk/meson.build index 731709b1..ba5b2779 100644 --- a/src/fe-gtk/meson.build +++ b/src/fe-gtk/meson.build @@ -28,12 +28,17 @@ hexchat_gtk_sources = [ 'xtext.c' ] +gtk_dep = dependency('gtk+-2.0', version: '>= 2.24.0') hexchat_gtk_deps = [ hexchat_common_dep, libgmodule_dep, # used by libsexy - dependency('gtk+-2.0', version: '>= 2.24.0') + gtk_dep ] +if gtk_dep.get_pkgconfig_variable('target') == 'x11' + hexchat_gtk_deps += dependency('x11') +endif + hexchat_gtk_cflags = [ '-fPIE' ] |