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:
250
250
- name : stats
251
251
run : |
252
252
make stats
253
+ ldd build/qjs
253
254
- name : test
254
255
run : |
255
256
make test
Original file line number Diff line number Diff line change @@ -132,9 +132,9 @@ if(BUILD_QJS_LIBC)
132
132
list (APPEND qjs_sources quickjs-libc.c )
133
133
endif ()
134
134
list (APPEND qjs_defines _GNU_SOURCE )
135
- list (APPEND qjs_libs qjs m pthread )
135
+ list (APPEND qjs_libs qjs m )
136
136
if (NOT MINGW )
137
- list (APPEND qjs_libs dl )
137
+ list (APPEND qjs_libs dl pthread )
138
138
endif ()
139
139
140
140
add_library (qjs ${qjs_sources} )
@@ -180,7 +180,9 @@ set_target_properties(qjs_exe PROPERTIES
180
180
)
181
181
target_compile_definitions (qjs_exe PRIVATE ${qjs_defines} )
182
182
target_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 ()
184
186
set_target_properties (qjs_exe PROPERTIES ENABLE_EXPORTS TRUE )
185
187
endif ()
186
188
You can’t perform that action at this time.
0 commit comments