mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-05 23:48:44 +02:00
Merge branch 'feature/qnx-support' into 'master'
Port to QNX See merge request GNOME/glib!1847
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user