summaryrefslogtreecommitdiff
path: root/packages/binutils/2.35/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch
diff options
context:
space:
mode:
authorHans-Christian Noren Egtvedt <hegtvedt@cisco.com>2020-08-05 20:29:09 (GMT)
committerHans-Christian Noren Egtvedt <hegtvedt@cisco.com>2020-08-27 09:35:59 (GMT)
commit793d65899f448ee9b0cf121a170c82f0bc15b854 (patch)
treeba432b0ae7bf1715bfc41f924c9a1d7b644ef4f2 /packages/binutils/2.35/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch
parent45a01960fc8da60a86091612ebde1808925dc689 (diff)
Add support for binutils 2.35
Forward ported patches from binutils 2.34, refreshed to match current sources. Patch 0008-poison-system-directories.patch did not apply clean and had minor adjustments to fit new binutils 2.35 release. Signed-off-by: Hans-Christian Noren Egtvedt <hegtvedt@cisco.com>
Diffstat (limited to 'packages/binutils/2.35/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch')
-rw-r--r--packages/binutils/2.35/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/packages/binutils/2.35/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch b/packages/binutils/2.35/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch
new file mode 100644
index 0000000..c712df5
--- /dev/null
+++ b/packages/binutils/2.35/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch
@@ -0,0 +1,15 @@
+---
+ 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 @@ Lock_impl_threads::Lock_impl_threads()
+ 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));