Define NO_WRITE_EXEC for Android
authortwinaphex <libretro@gmail.com>
Thu, 29 Sep 2016 00:45:28 +0000 (02:45 +0200)
committertwinaphex <libretro@gmail.com>
Thu, 29 Sep 2016 00:45:40 +0000 (02:45 +0200)
jni/Android.mk
libpcsxcore/new_dynarec/new_dynarec_config.h

index a0dbec3..43a98da 100644 (file)
@@ -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
 
index fbd08ac..601f1a2 100644 (file)
@@ -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