Meson: add ADDR_NO_RANDOMIZE check (#9905)

This commit is contained in:
Paul I 2018-04-17 11:53:08 +03:00 committed by xarkes
parent f6c5d0e98b
commit bfb54eafb8
2 changed files with 6 additions and 0 deletions

View File

@ -4,6 +4,7 @@
#include "r_version.h"
#define DEBUGGER @DEBUGGER@
#define HAVE_DECL_ADDR_NO_RANDOMIZE @HAVE_DECL_ADDR_NO_RANDOMIZE@
#if __WINDOWS__ || __CYGWIN__ || MINGW32 || _MSC_VER || CUTTER
#define R2_PREFIX "."

View File

@ -124,6 +124,11 @@ if host_machine.system() == 'windows'
else
userconf.set('HAVE_JEMALLOC', 1)
endif
if cc.has_header_symbol('sys/personality.h', 'ADDR_NO_RANDOMIZE')
userconf.set('HAVE_DECL_ADDR_NO_RANDOMIZE', 1)
else
userconf.set('HAVE_DECL_ADDR_NO_RANDOMIZE', 0)
endif
r_userconf_h = configure_file(
input: 'libr/include/r_userconf.h.in',
output: 'r_userconf.h',