Explicitly link tests with pthreads
Required to use pthreads within tests. Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
parent
8860021abc
commit
2667eda785
2 changed files with 4 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
||||||
|
find_package(Threads)
|
||||||
|
|
||||||
set(libs
|
set(libs
|
||||||
${mbedtls_target}
|
${mbedtls_target}
|
||||||
|
${CMAKE_THREAD_LIBS_INIT}
|
||||||
)
|
)
|
||||||
|
|
||||||
# Set the project root directory if it's not already defined, as may happen if
|
# Set the project root directory if it's not already defined, as may happen if
|
||||||
|
|
|
@ -57,6 +57,7 @@ else
|
||||||
DLEXT ?= so
|
DLEXT ?= so
|
||||||
EXEXT=
|
EXEXT=
|
||||||
SHARED_SUFFIX=
|
SHARED_SUFFIX=
|
||||||
|
LOCAL_LDFLAGS += -lpthread
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef WINDOWS
|
ifdef WINDOWS
|
||||||
|
|
Loading…
Reference in a new issue