Skip to content

Commit 083cb6c

Browse files
committed
Enable _uuid on MINGW
1 parent 03acb5e commit 083cb6c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

configure.ac

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4250,6 +4250,12 @@ AS_CASE([$MACHDEP],
42504250
[CTYPES_LIBS=""]
42514251
)
42524252

4253+
dnl On MINGW, you need to link againt rpcrt4 for _uuid
4254+
AS_CASE([$MACHDEP],
4255+
[win32], [UUID_LIBS="-lrpcrt4"],
4256+
[UUID_LIBS=""]
4257+
)
4258+
42534259
dnl detect sqlite3 from Emscripten emport
42544260
PY_CHECK_EMSCRIPTEN_PORT([LIBSQLITE3], [-sUSE_SQLITE3])
42554261

@@ -7963,8 +7969,8 @@ PY_STDLIB_MOD([_tkinter],
79637969
[], [test "$have_tcltk" = "yes"],
79647970
[$TCLTK_CFLAGS], [$TCLTK_LIBS])
79657971
PY_STDLIB_MOD([_uuid],
7966-
[], [test "$have_uuid" = "yes"],
7967-
[$LIBUUID_CFLAGS], [$LIBUUID_LIBS])
7972+
[], [test "$have_uuid" = "yes" -o "$MACHDEP" = "win32"],
7973+
[$LIBUUID_CFLAGS], [$LIBUUID_LIBS $UUID_LIBS])
79687974

79697975
dnl compression libs
79707976
PY_STDLIB_MOD([zlib], [], [test "$have_zlib" = yes],

0 commit comments

Comments
 (0)