Merge branch 'wip/tingping/rtld-check-fix' into 'master'

build: Fix check for RTLD_NEXT

See merge request GNOME/glib!782
This commit is contained in:
Philip Withnall 2019-04-23 16:09:38 +00:00
commit 0bf5a8ca00

View File

@ -593,7 +593,7 @@ if cc.has_header_symbol('dlfcn.h', 'RTLD_GLOBAL')
endif
have_rtld_next = false
if cc.has_header_symbol('dlfcn.h', 'RTLD_NEXT')
if cc.has_header_symbol('dlfcn.h', 'RTLD_NEXT', args: '-D_GNU_SOURCE')
have_rtld_next = true
glib_conf.set('HAVE_RTLD_NEXT', 1)
endif