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:
1 parent
53d4f5c9fc
commit
2b5a5c510b
2 files changed
+22
-1
No files matched your search
@@ -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 "")
|
||||
|
||||
Reference in new issue
Block a user