From f02594f5c7ec18b8a6c6fd3802e199f07478a744 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 29 Sep 2016 02:45:28 +0200 Subject: [PATCH] Define NO_WRITE_EXEC for Android --- jni/Android.mk | 2 +- libpcsxcore/new_dynarec/new_dynarec_config.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jni/Android.mk b/jni/Android.mk index a0dbec34..43a98da9 100644 --- a/jni/Android.mk +++ b/jni/Android.mk @@ -95,7 +95,7 @@ LOCAL_SRC_FILES += ../frontend/main.c ../frontend/plugin.c ../frontend/cspace.c # libretro LOCAL_SRC_FILES += ../frontend/libretro.c -LOCAL_CFLAGS += -O3 -ffast-math -funroll-loops -DNDEBUG -D_FILE_OFFSET_BITS=64 -DHAVE_LIBRETRO -DNO_FRONTEND -DFRONTEND_SUPPORTS_RGB565 +LOCAL_CFLAGS += -O3 -ffast-math -funroll-loops -DNDEBUG -D_FILE_OFFSET_BITS=64 -DHAVE_LIBRETRO -DNO_FRONTEND -DFRONTEND_SUPPORTS_RGB565 -DANDROID LOCAL_C_INCLUDES += $(LOCAL_PATH)/../include LOCAL_LDLIBS := -lz -llog diff --git a/libpcsxcore/new_dynarec/new_dynarec_config.h b/libpcsxcore/new_dynarec/new_dynarec_config.h index fbd08ac2..601f1a2f 100644 --- a/libpcsxcore/new_dynarec/new_dynarec_config.h +++ b/libpcsxcore/new_dynarec/new_dynarec_config.h @@ -4,7 +4,7 @@ #define USE_MINI_HT 1 //#define REG_PREFETCH 1 -#if defined(__MACH__) || defined(VITA) +#if defined(__MACH__) || defined(VITA) || defined(ANDROID) #define NO_WRITE_EXEC 1 #endif #ifdef VITA -- 2.39.5