summarylogtreecommitdiffstats
path: root/0111-configure.ac-don-t-check-for-clock_-functions.patch
diff options
context:
space:
mode:
authoratomlong2021-10-23 17:55:22 +0800
committeratomlong2021-10-23 18:06:15 +0800
commit80096c8de4b34ec1ed8f30bb428918cd592b2424 (patch)
treeb48dd1e73de9ea35a4709fb6b93deb16331ec514 /0111-configure.ac-don-t-check-for-clock_-functions.patch
parent89a67c05174951d172252b1db96ff93cc4ec4bcd (diff)
downloadaur-mingw-w64-python.tar.gz
update to 3.9.7
Diffstat (limited to '0111-configure.ac-don-t-check-for-clock_-functions.patch')
-rw-r--r--0111-configure.ac-don-t-check-for-clock_-functions.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/0111-configure.ac-don-t-check-for-clock_-functions.patch b/0111-configure.ac-don-t-check-for-clock_-functions.patch
new file mode 100644
index 000000000000..3af3c2dce883
--- /dev/null
+++ b/0111-configure.ac-don-t-check-for-clock_-functions.patch
@@ -0,0 +1,36 @@
+From 80640c7c44d34d8cebfa0768575750e7753bcb8e 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 111/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 2455a05..dd6969d 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -4369,6 +4369,9 @@ char *r = crypt_r("", "", &d);
+ [])
+ )
+
++case $host in
++ *-*-mingw*) ;;
++ *)
+ AC_CHECK_FUNCS(clock_gettime, [], [
+ AC_CHECK_LIB(rt, clock_gettime, [
+ LIBS="$LIBS -lrt"
+@@ -4389,6 +4392,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([[
+--
+2.33.0
+