Merge branch 'feature/qnx-support' into 'master'

Port to QNX

See merge request GNOME/glib!1847
This commit is contained in:
Philip Withnall
2021-01-20 12:28:54 +00:00
4 changed files with 46 additions and 1 deletions

View File

@@ -98,6 +98,10 @@ build_tests = get_option('tests') and (not meson.is_cross_build() or (meson.is_c
add_project_arguments('-D_GNU_SOURCE', language: 'c')
if host_system == 'qnx'
add_project_arguments('-D_QNX_SOURCE', language: 'c')
endif
# Disable strict aliasing;
# see https://bugzilla.gnome.org/show_bug.cgi?id=791622
if cc.has_argument('-fno-strict-aliasing')
@@ -773,6 +777,10 @@ if host_system == 'darwin'
add_project_link_arguments(osx_ldflags, language : ['objc', 'c'])
endif
if host_system == 'qnx'
glib_conf.set('HAVE_QNX', 1)
endif
# Check for futex(2)
if cc.links('''#include <linux/futex.h>
#include <sys/syscall.h>