Skip to content

Commit

Permalink
Add missing library for multiprocessing module
Browse files Browse the repository at this point in the history
`ws2_32` is required when building that module
  • Loading branch information
naveen521kk committed Jan 1, 2024
1 parent 590eaa4 commit 4484164
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -4232,6 +4232,13 @@ AS_CASE([$MACHDEP],
[SOCKET_LIBS=""]
)

dnl On MINGW, you need to link againt ws2_32 for _multiprocessing
AS_CASE([$MACHDEP],
[win32], [MULTIPROCESSING_LIBS="-lws2_32"],
[MULTIPROCESSING_LIBS=""]
)


dnl detect sqlite3 from Emscripten emport
PY_CHECK_EMSCRIPTEN_PORT([LIBSQLITE3], [-sUSE_SQLITE3])

Expand Down Expand Up @@ -7835,7 +7842,7 @@ PY_STDLIB_MOD_SIMPLE([_zoneinfo])
dnl multiprocessing modules
PY_STDLIB_MOD([_multiprocessing],
[], [test "$ac_cv_func_sem_unlink" = "yes" -o "$MACHDEP" = "win32"],
[-I\$(srcdir)/Modules/_multiprocessing])
[-I\$(srcdir)/Modules/_multiprocessing], [$MULTIPROCESSING_LIBS])
PY_STDLIB_MOD([_posixshmem],
[], [test "$have_posix_shmem" = "yes"],
[$POSIXSHMEM_CFLAGS], [$POSIXSHMEM_LIBS])
Expand Down

0 comments on commit 4484164

Please sign in to comment.