Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 52e52d14 authored by Elliott Hughes's avatar Elliott Hughes
Browse files

gtest needs -lpthread.

Host gtests that don't use pthreads themselves need to be linked
against libpthread because gtest itself uses pthreads to ensure
thread-safety. (It can't know in advance whether the code under
test is going to spin up threads, so it has to be pessimistic.)

Change-Id: I14fb1098c163d7fe6ae9a9a0314acead4ec9383d
parent 0a3cf1a0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -10,4 +10,6 @@ LOCAL_C_INCLUDES += \
LOCAL_STATIC_LIBRARIES += libgtest_host libgtest_main_host
LOCAL_SHARED_LIBRARIES +=

LOCAL_LDFLAGS += -lpthread

include $(BUILD_HOST_EXECUTABLE)