mirror of
https://github.com/encounter/SDL.git
synced 2025-12-08 13:15:10 +00:00
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:
@@ -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