File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -250,6 +250,7 @@ jobs:
250250 - name : stats
251251 run : |
252252 make stats
253+ ldd build/qjs
253254 - name : test
254255 run : |
255256 make test
Original file line number Diff line number Diff line change @@ -132,9 +132,9 @@ if(BUILD_QJS_LIBC)
132132 list (APPEND qjs_sources quickjs-libc.c)
133133endif ()
134134list (APPEND qjs_defines _GNU_SOURCE)
135- list (APPEND qjs_libs qjs m pthread )
135+ list (APPEND qjs_libs qjs m)
136136if (NOT MINGW)
137- list (APPEND qjs_libs dl)
137+ list (APPEND qjs_libs dl pthread )
138138endif ()
139139
140140add_library (qjs ${qjs_sources} )
@@ -180,7 +180,9 @@ set_target_properties(qjs_exe PROPERTIES
180180)
181181target_compile_definitions (qjs_exe PRIVATE ${qjs_defines} )
182182target_link_libraries (qjs_exe ${qjs_libs} )
183- if (NOT MINGW)
183+ if (MINGW)
184+ target_link_options (qjs_exe PRIVATE -static -static -libgcc)
185+ else ()
184186 set_target_properties (qjs_exe PROPERTIES ENABLE_EXPORTS TRUE )
185187endif ()
186188
You can’t perform that action at this time.
0 commit comments