Skip to content

Commit

Permalink
Enable _uuid on MINGW
Browse files Browse the repository at this point in the history
  • Loading branch information
naveen521kk committed Jan 1, 2024
1 parent a9a921c commit 51532a4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -4250,6 +4250,12 @@ AS_CASE([$MACHDEP],
[CTYPES_LIBS=""]
)

dnl On MINGW, you need to link againt rpcrt4 for _uuid
AS_CASE([$MACHDEP],
[win32], [UUID_LIBS="-lrpcrt4"],
[UUID_LIBS=""]
)

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

Expand Down Expand Up @@ -7963,8 +7969,8 @@ PY_STDLIB_MOD([_tkinter],
[], [test "$have_tcltk" = "yes"],
[$TCLTK_CFLAGS], [$TCLTK_LIBS])
PY_STDLIB_MOD([_uuid],
[], [test "$have_uuid" = "yes"],
[$LIBUUID_CFLAGS], [$LIBUUID_LIBS])
[], [test "$have_uuid" = "yes" -o "$MACHDEP" = "win32"],
[$LIBUUID_CFLAGS], [$LIBUUID_LIBS $UUID_LIBS])

dnl compression libs
PY_STDLIB_MOD([zlib], [], [test "$have_zlib" = yes],
Expand Down

0 comments on commit 51532a4

Please sign in to comment.