Android build fixes

-Enabling checking for GCC_ATOMICS also on clang by default. This way all Android ABIs build successfully
 -Android cmake: Threading was not enabled correctly
 -Android cmake: Timers and dynamic lib loading were not included in the sources
This commit is contained in:
Olli Kallioinen 2017-06-08 22:07:55 +03:00
parent de8a709d9a
commit 7034592ed9
2 changed files with 22 additions and 1 deletions

View file

@ -859,6 +859,8 @@ macro(CheckPTHREAD)
if(LINUX)
set(PTHREAD_CFLAGS "-D_REENTRANT")
set(PTHREAD_LDFLAGS "-pthread")
elseif(ANDROID)
# pthreads are builtin
elseif(BSDI)
set(PTHREAD_CFLAGS "-D_REENTRANT -D_THREAD_SAFE")
set(PTHREAD_LDFLAGS "")