Fix compilation on Android ##build

This commit is contained in:
David CARLIER 2019-03-03 13:10:44 +00:00 committed by radare
parent 961d0122f1
commit 10548ca4db

View File

@ -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