38 lines
1.2 KiB
Diff
38 lines
1.2 KiB
Diff
From 8c1c0b35d0a030d50d98aeae0bb4c8b6453380f4 Mon Sep 17 00:00:00 2001
|
|
From: Naveen M K <naveen521kk@gmail.com>
|
|
Date: Tue, 20 Jun 2023 22:08:12 +0530
|
|
Subject: [PATCH 124/N] Fix building `_socket` module
|
|
|
|
---
|
|
configure.ac | 10 +++++++++-
|
|
1 file changed, 9 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/configure.ac b/configure.ac
|
|
index fdb6690..a4cd2e8 100644
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -4017,6 +4017,12 @@ AS_CASE([$ac_sys_system],
|
|
[OSSAUDIODEV_LIBS=""]
|
|
)
|
|
|
|
+dnl On MINGW, you need to link against ws2_32 and iphlpapi for sockets to work
|
|
+AS_CASE([$ac_sys_system],
|
|
+ [MINGW], [SOCKET_LIBS="-lws2_32 -liphlpapi"],
|
|
+ [SOCKET_LIBS=""]
|
|
+)
|
|
+
|
|
dnl detect sqlite3 from Emscripten emport
|
|
PY_CHECK_EMSCRIPTEN_PORT([LIBSQLITE3], [-sUSE_SQLITE3])
|
|
|
|
@@ -7481,7 +7487,9 @@ PY_STDLIB_MOD([mmap],
|
|
PY_STDLIB_MOD([_socket],
|
|
[], m4_flatten([test "$ac_cv_header_sys_socket_h" = "yes"
|
|
-a "$ac_cv_header_sys_types_h" = "yes"
|
|
- -a "$ac_cv_header_netinet_in_h" = "yes"]))
|
|
+ -a "$ac_cv_header_netinet_in_h" = "yes"
|
|
+ -o "$MACHDEP" = "win32"]),
|
|
+ [], [$SOCKET_LIBS])
|
|
|
|
dnl platform specific extensions
|
|
PY_STDLIB_MOD([grp], [], [test "$ac_cv_func_getgrgid" = yes -o "$ac_cv_func_getgrgid_r" = yes])
|