build: Fix check for RTLD_NEXT

This commit is contained in:
Patrick Griffis 2019-04-16 09:22:11 -07:00 committed by Patrick Griffis
parent c95e2ae9c9
commit 641966c1bb

View File

@ -593,7 +593,7 @@ if cc.has_header_symbol('dlfcn.h', 'RTLD_GLOBAL')
endif endif
have_rtld_next = false 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 have_rtld_next = true
glib_conf.set('HAVE_RTLD_NEXT', 1) glib_conf.set('HAVE_RTLD_NEXT', 1)
endif endif