summaryrefslogtreecommitdiff
path: root/packages/binutils/2.30/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2018-01-28 19:42:24 (GMT)
committerAlexey Neyman <stilor@att.net>2018-01-29 03:25:47 (GMT)
commit66ad1ff51411c24bfad7c1892f7481a9cdc924f8 (patch)
tree56ba7ceb17e192a9b3eafe01064aeb27f33ab033 /packages/binutils/2.30/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch
parentba165ed4c0bfa8a83e61a2efd1ad205777978486 (diff)
Upgrade to new releases
android-ndk, binutils, gcc, linux, mpfr, ncurses, newlib, uclibc-ng MPC vs MPFR dependencies required modifications in auto-generated templates to also provide non-inclusive older-than/newer-than specifications. Also correct MPC URLs, the website seems to have adjusted its directory layout. Currently, newlib 3.0.0 doesn't build for arm-nano-eabi. Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'packages/binutils/2.30/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch')
-rw-r--r--packages/binutils/2.30/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/packages/binutils/2.30/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch b/packages/binutils/2.30/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch
new file mode 100644
index 0000000..99dee96
--- /dev/null
+++ b/packages/binutils/2.30/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 @@
+ 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));