-
When I am trying to build
The cmake command I used is as following: cmake -DWAMR_BUILD_FAST_JIT=1 -DWAMR_BUILD_LAZY_JIT=0 -DCMAKE_BUILD_TYPE=Debug -DWAMR_DISABLE_HW_BOUND_CHECK=1 -DWAMR_BUILD_LIBC_UVWASI=1 .. |
Beta Was this translation helpful? Give feedback.
Answered by
wenyongh
May 8, 2023
Replies: 1 comment
-
Hi, please add diff --git a/samples/file/src/CMakeLists.txt b/samples/file/src/CMakeLists.txt
index 2bc3bec6..96de1a9b 100644
--- a/samples/file/src/CMakeLists.txt
+++ b/samples/file/src/CMakeLists.txt
@@ -85,7 +85,7 @@ check_pie_supported()
set_target_properties (iwasm PROPERTIES POSITION_INDEPENDENT_CODE ON)
if (APPLE)
- target_link_libraries (iwasm vmlib -lm -ldl -lpthread)
+ target_link_libraries (iwasm vmlib ${UV_A_LIBS} -lm -ldl -lpthread)
else ()
- target_link_libraries (iwasm vmlib -lm -ldl -lpthread -lrt)
+ target_link_libraries (iwasm vmlib ${UV_A_LIBS} -lm -ldl -lpthread -lrt)
endif () |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
IceCY
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, please add
${UV_A_LIBS}
to the link list of iwasm: