summaryrefslogtreecommitdiff
path: root/toolchain/uclibc/patches/0.9.34-git/0005-sparc-testsuite-compile-fix.patch
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-08-20 20:26:32 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-08-20 20:27:05 +0200
commitf8035dc4dfa8a7ca0d88c1dfc3e4d7051559aaf1 (patch)
treee9e160e11fbaafbf04e12ee86ea174025a4f864c /toolchain/uclibc/patches/0.9.34-git/0005-sparc-testsuite-compile-fix.patch
parent9f31eaf9da3fd7956cde0b32ecf2971bd08a8f7b (diff)
fix some uClibc sparc issues. Disable DO_XSI_MATH for now, because testsuite fails to compile, when enabled. missing bessel float implementation
Diffstat (limited to 'toolchain/uclibc/patches/0.9.34-git/0005-sparc-testsuite-compile-fix.patch')
-rw-r--r--toolchain/uclibc/patches/0.9.34-git/0005-sparc-testsuite-compile-fix.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/toolchain/uclibc/patches/0.9.34-git/0005-sparc-testsuite-compile-fix.patch b/toolchain/uclibc/patches/0.9.34-git/0005-sparc-testsuite-compile-fix.patch
new file mode 100644
index 000000000..05f8f68bd
--- /dev/null
+++ b/toolchain/uclibc/patches/0.9.34-git/0005-sparc-testsuite-compile-fix.patch
@@ -0,0 +1,44 @@
+From edda85b5a6c35cc2bc029d0020747167e2867a91 Mon Sep 17 00:00:00 2001
+From: Waldemar Brodkorb <wbx@openadk.org>
+Date: Wed, 20 Aug 2014 04:39:04 +0200
+Subject: [PATCH 5/5] sparc testsuite compile fix
+
+tst-spin1.c compile breaks with:
+test/nptl/tst-spin1.c:34: undefined reference to `pthread_spin_lock'
+
+pthread_spin_lock and pthread_spin_trylock is missing while
+building sparc. add the meta c files here.
+
+Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
+---
+ libpthread/nptl/sysdeps/sparc/pthread_spin_lock.c | 5 +++++
+ libpthread/nptl/sysdeps/sparc/pthread_spin_trylock.c | 5 +++++
+ 2 files changed, 10 insertions(+)
+ create mode 100644 libpthread/nptl/sysdeps/sparc/pthread_spin_lock.c
+ create mode 100644 libpthread/nptl/sysdeps/sparc/pthread_spin_trylock.c
+
+diff --git a/libpthread/nptl/sysdeps/sparc/pthread_spin_lock.c b/libpthread/nptl/sysdeps/sparc/pthread_spin_lock.c
+new file mode 100644
+index 0000000..dcc5ae2
+--- /dev/null
++++ b/libpthread/nptl/sysdeps/sparc/pthread_spin_lock.c
+@@ -0,0 +1,5 @@
++#if defined(__arch64__)
++#include "sparc64/pthread_spin_lock.c"
++#else
++#include "sparc32/pthread_spin_lock.c"
++#endif
+diff --git a/libpthread/nptl/sysdeps/sparc/pthread_spin_trylock.c b/libpthread/nptl/sysdeps/sparc/pthread_spin_trylock.c
+new file mode 100644
+index 0000000..af63eec
+--- /dev/null
++++ b/libpthread/nptl/sysdeps/sparc/pthread_spin_trylock.c
+@@ -0,0 +1,5 @@
++#if defined(__arch64__)
++#include "sparc64/pthread_spin_trylock.c"
++#else
++#include "sparc32/pthread_spin_trylock.c"
++#endif
+--
+1.8.5.2 (Apple Git-48)
+