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:
parent
de8a709d9a
commit
7034592ed9
2 changed files with 22 additions and 1 deletions
|
@ -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 "")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue