mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-07 14:19:06 +00:00
Meson: add ADDR_NO_RANDOMIZE check (#9905)
This commit is contained in:
parent
f6c5d0e98b
commit
bfb54eafb8
@ -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 "."
|
||||
|
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user