From 1bce68c5601d47360d1e809ce494aa01ce162132 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 31 May 2018 21:20:08 +0100 Subject: build: Add symbols for platform detection We're missing OS_LINUX and OS_DARWIN pre-processor symbols. --- meson.build | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 4ac16ece0..ce391b912 100644 --- a/meson.build +++ b/meson.build @@ -170,19 +170,21 @@ endif common_cflags += cc.get_supported_arguments(test_cflags) -# Linker flags if host_machine.system() == 'linux' + # Additional linker flags test_ldflags = ['-Wl,-Bsymbolic', '-Wl,-z,relro', '-Wl,-z,now'] if meson.version().version_compare('>= 0.46.0') common_ldflags += cc.get_supported_link_arguments(test_ldflags) else common_ldflags += test_ldflags endif + gdk_pixbuf_conf.set('OS_LINUX', 1) endif -# Maintain compatibility with autotools on macOS if host_machine.system() == 'darwin' + # Maintain compatibility with autotools on macOS common_ldflags += [ '-compatibility_version 1', '-current_version 1.0', ] + gdk_pixbuf_conf.set('OS_DARWIN', 1) endif # Dependencies -- cgit v1.2.1