Fix Android build

This commit is contained in:
Benjamin Levy 2022-01-12 21:24:16 -05:00
parent 31a988877a
commit 54b911550f
No known key found for this signature in database
GPG Key ID: AAB1132642EF3045
2 changed files with 4 additions and 0 deletions

View File

@ -133,6 +133,8 @@ elseif(PHYTIUM)
add_definitions(-DPHYTIUM)
add_definitions(-pipe -march=armv8.1-a+simd+crypto -mfpu=neon-fp-armv8 -mfloat-abi=hard)
set(CMAKE_ASM_FLAGS "-pipe -march=armv8.1-a+simd+crypto -mfpu=neon-fp-armv8 -mfloat-abi=hard")
elseif(ANDROID)
add_definitions(-DANDROID)
elseif(ARM_DYNAREC)
#if DYNAREC is selected alone, without any arch
set(CMAKE_ASM_FLAGS "-pipe -march=armv7-a+simd -mfpu=neon")

View File

@ -2874,10 +2874,12 @@ EXPORT int my_semctl(x86emu_t* emu, int semid, int semnum, int cmd, union semun
return ((iFiiiV_t)f)(semid, semnum, cmd, b);
}
#ifndef ANDROID
EXPORT int my_on_exit(x86emu_t* emu, void* f, void* args)
{
return on_exit(findon_exitFct(f), args);
}
#endif
EXPORT char** my_environ = NULL;