aboutsummaryrefslogtreecommitdiff
path: root/packages/binutils/2.43.1/0002-MinGW-w64-winpthreads-doesn-t-have-pthread_mutexattr.patch
diff options
context:
space:
mode:
authorChris Packham <judge.packham@gmail.com>2024-08-22 13:17:30 +1200
committerChris Packham <judge.packham@gmail.com>2024-08-30 09:53:47 +1200
commit8105791c34a4e48433facbac556e7aedb114caed (patch)
treee7d245858fdc547d4147b6659f06c056e605fe64 /packages/binutils/2.43.1/0002-MinGW-w64-winpthreads-doesn-t-have-pthread_mutexattr.patch
parent146fee59bc52ad123b0f0d243aee8ead4c7af26a (diff)
downloadcrosstool-ng-8105791c34a4e48433facbac556e7aedb114caed.tar.gz
crosstool-ng-8105791c34a4e48433facbac556e7aedb114caed.tar.bz2
crosstool-ng-8105791c34a4e48433facbac556e7aedb114caed.zip
binutils: Add 2.43.1
https://sourceware.org/pipermail/binutils/2024-August/136396.html Add the new version rebasing the patches we carry on top. Signed-off-by: Chris Packham <judge.packham@gmail.com>
Diffstat (limited to 'packages/binutils/2.43.1/0002-MinGW-w64-winpthreads-doesn-t-have-pthread_mutexattr.patch')
-rw-r--r--packages/binutils/2.43.1/0002-MinGW-w64-winpthreads-doesn-t-have-pthread_mutexattr.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/packages/binutils/2.43.1/0002-MinGW-w64-winpthreads-doesn-t-have-pthread_mutexattr.patch b/packages/binutils/2.43.1/0002-MinGW-w64-winpthreads-doesn-t-have-pthread_mutexattr.patch
new file mode 100644
index 00000000..4cd75eff
--- /dev/null
+++ b/packages/binutils/2.43.1/0002-MinGW-w64-winpthreads-doesn-t-have-pthread_mutexattr.patch
@@ -0,0 +1,21 @@
+From 5ecb202705a6108aa38cab24f5d8d7d347e71ed6 Mon Sep 17 00:00:00 2001
+From: Chris Packham <judge.packham@gmail.com>
+Date: Mon, 8 Aug 2022 20:37:03 +1200
+Subject: [PATCH 2/8] MinGW w64 winpthreads doesn't have
+ pthread_mutexattr_settype
+
+---
+ gold/gold-threads.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/gold/gold-threads.cc
++++ b/gold/gold-threads.cc
+@@ -101,7 +101,7 @@
+ int err = pthread_mutexattr_init(&attr);
+ if (err != 0)
+ gold_fatal(_("pthead_mutexattr_init failed: %s"), strerror(err));
+-#ifdef PTHREAD_MUTEX_ADAPTIVE_NP
++#if defined(PTHREAD_MUTEX_ADAPTIVE_NP) && !defined(_WIN32)
+ err = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ADAPTIVE_NP);
+ if (err != 0)
+ gold_fatal(_("pthread_mutexattr_settype failed: %s"), strerror(err));