mirror of
https://github.com/radareorg/radare2.git
synced 2024-10-07 02:23:58 +00:00
Fix compilation on Android ##build
This commit is contained in:
parent
961d0122f1
commit
10548ca4db
@ -231,11 +231,13 @@ static int parseBool(const char *e) {
|
||||
static void setASLR(RRunProfile *r, int enabled) {
|
||||
#if __linux__
|
||||
r_sys_aslr (enabled);
|
||||
#if HAVE_DECL_ADDR_NO_RANDOMIZE
|
||||
#if HAVE_DECL_ADDR_NO_RANDOMIZE && !__ANDROID__
|
||||
if (personality (ADDR_NO_RANDOMIZE) == -1) {
|
||||
#endif
|
||||
r_sys_aslr (0);
|
||||
#if HAVE_DECL_ADDR_NO_RANDOMIZE && !__ANDROID__
|
||||
}
|
||||
#endif
|
||||
#elif __APPLE__
|
||||
// TOO OLD setenv ("DYLD_NO_PIE", "1", 1);
|
||||
// disable this because its
|
||||
|
Loading…
Reference in New Issue
Block a user