Fix issue in multi-thread sample (#1458)

Set `WAMR_BUILD_LIB_PTHREAD_SEMAPHORE` for the sample,
and update document.
This commit is contained in:
Xu Jun
2022-09-07 12:56:50 +08:00
committed by GitHub
parent 729c4aeeaa
commit 5722fcc40a
3 changed files with 6 additions and 1 deletions

View File

@ -45,6 +45,7 @@ set(WAMR_BUILD_JIT 0)
set(WAMR_BUILD_LIBC_BUILTIN 1)
set(WAMR_BUILD_FAST_INTERP 1)
set(WAMR_BUILD_LIB_PTHREAD 1)
set(WAMR_BUILD_LIB_PTHREAD_SEMAPHORE 1)
# compiling and linking flags
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pie -fPIE")