File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -16,12 +16,16 @@ include_directories(src/include duckdb/third_party/httplib)
16
16
17
17
set (EXTENSION_SOURCES src/webxtension_extension.cpp )
18
18
19
+ if (MINGW )
20
+ set (OPENSSL_USE_STATIC_LIBS TRUE )
21
+ set (WIN_LIBS crypt32 ws2_32 wsock32 )
22
+ endif ()
23
+
19
24
build_static_extension (${TARGET_NAME} ${EXTENSION_SOURCES} )
20
25
build_loadable_extension (${TARGET_NAME} " " ${EXTENSION_SOURCES} )
21
26
22
- # Link OpenSSL in both the static library as the loadable extension
23
- target_link_libraries (${EXTENSION_NAME} OpenSSL::SSL OpenSSL::Crypto )
24
- target_link_libraries (${LOADABLE_EXTENSION_NAME} OpenSSL::SSL OpenSSL::Crypto )
27
+ target_link_libraries (${EXTENSION_NAME} OpenSSL::SSL OpenSSL::Crypto ${WIN_LIBS} )
28
+ target_link_libraries (${LOADABLE_EXTENSION_NAME} OpenSSL::SSL OpenSSL::Crypto ${WIN_LIBS} )
25
29
26
30
install (
27
31
TARGETS ${EXTENSION_NAME}
You can’t perform that action at this time.
0 commit comments