Files
MINGW-packages/mingw-w64-python/0109-configure.ac-don-t-check-for-clock_-functions.patch
2023-02-10 12:56:41 +01:00

34 lines
897 B
Diff

From 2b782dadf268515f2656628956939a64956c00f8 Mon Sep 17 00:00:00 2001
From: Christoph Reiter <reiter.christoph@gmail.com>
Date: Sun, 1 Aug 2021 18:35:17 +0200
Subject: [PATCH 109/N] configure.ac: don't check for clock_ functions
They shouldn't be exposed on Windows and lead to winpthread being linked in
---
configure.ac | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/configure.ac b/configure.ac
index 8923bb8..dee6098 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4395,6 +4395,9 @@ char *r = crypt_r("", "", &d);
[])
)
+case $host in
+ *-*-mingw*) ;;
+ *)
AC_CHECK_FUNCS(clock_gettime, [], [
AC_CHECK_LIB(rt, clock_gettime, [
LIBS="$LIBS -lrt"
@@ -4415,6 +4418,8 @@ AC_CHECK_FUNCS(clock_settime, [], [
AC_DEFINE(HAVE_CLOCK_SETTIME, 1)
])
])
+ ;;
+esac
AC_MSG_CHECKING(for major, minor, and makedev)
AC_LINK_IFELSE([AC_LANG_PROGRAM([[