mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-25 07:21:05 +00:00
ecc5e41618
Add the new release and rebase the local patches. Add a new patch which resolves a build issue on macOS. https://sourceware.org/pipermail/binutils/2024-January/132213.html Signed-off-by: Chris Packham <judge.packham@gmail.com> Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
22 lines
780 B
Diff
22 lines
780 B
Diff
From ea2133b62542ca5c66027e9703ce1f90822e7e43 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] 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));
|