build: don't link against -lpthread on Android
On Android, pthread is part of the C standard library. Hence, there is no need to specify -lpthread when building for Android. PR-URL: https://github.com/libuv/libuv/pull/2110 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
7a2c889fa8
commit
67e771fe53
@ -210,7 +210,11 @@ if(WIN32)
|
||||
list(APPEND uv_test_sources src/win/snprintf.c test/runner-win.c)
|
||||
else()
|
||||
list(APPEND uv_defines _FILE_OFFSET_BITS=64 _LARGEFILE_SOURCE)
|
||||
list(APPEND uv_libraries pthread)
|
||||
if(NOT CMAKE_SYSTEM_NAME STREQUAL "Android")
|
||||
# Android has pthread as part of its c library, not as a separate
|
||||
# libpthread.so.
|
||||
list(APPEND uv_libraries pthread)
|
||||
endif()
|
||||
list(APPEND uv_sources
|
||||
src/unix/async.c
|
||||
src/unix/core.c
|
||||
|
||||
Loading…
Reference in New Issue
Block a user