@@ -4244,6 +4244,12 @@ AS_CASE([$MACHDEP],
42444244 [ SELECTMODULE_LIBS=""]
42454245)
42464246
4247+ dnl On MINGW, you need to link againt ole32, oleaut32 and uuid for ctypes
4248+ AS_CASE ( [ $MACHDEP] ,
4249+ [ win32] , [ CTYPES_LIBS="-lole32 -loleaut32 -luuid"] ,
4250+ [ CTYPES_LIBS=""]
4251+ )
4252+
42474253dnl detect sqlite3 from Emscripten emport
42484254PY_CHECK_EMSCRIPTEN_PORT([ LIBSQLITE3] , [ -sUSE_SQLITE3] )
42494255
@@ -7927,7 +7933,7 @@ PY_STDLIB_MOD([_crypt],
79277933 [ $LIBCRYPT_CFLAGS] , [ $LIBCRYPT_LIBS] )
79287934PY_STDLIB_MOD([ _ctypes] ,
79297935 [ ] , [ test "$have_libffi" = yes] ,
7930- [ $NO_STRICT_OVERFLOW_CFLAGS $LIBFFI_CFLAGS] , [ $LIBFFI_LIBS] )
7936+ [ $NO_STRICT_OVERFLOW_CFLAGS $LIBFFI_CFLAGS] , [ $LIBFFI_LIBS $CTYPES_LIBS ] )
79317937PY_STDLIB_MOD([ _curses] ,
79327938 [ ] , [ test "$have_curses" != "no"] ,
79337939 [ $CURSES_CFLAGS] , [ $CURSES_LIBS]
@@ -7998,7 +8004,7 @@ PY_STDLIB_MOD([_xxtestfuzz], [test "$TEST_MODULES" = yes])
79988004PY_STDLIB_MOD([ _testconsole] , [ test "$TEST_MODULES" = yes -a "$MACHDEP" = "win32"] )
79998005PY_STDLIB_MOD([ _ctypes_test] ,
80008006 [ test "$TEST_MODULES" = yes] , [ test "$have_libffi" = yes -a "$have_dynamic_loading" = yes] ,
8001- [ ] , [ $LIBM] )
8007+ [ ] , [ $LIBM $CTYPES_LIBS ] )
80028008
80038009dnl Limited API template modules.
80048010dnl The limited C API is not compatible with the Py_TRACE_REFS macro.
0 commit comments