0004-sparc-testsuite-compile-fix.patch 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. From 939bd5baadb18f56235c3bf9a2fa08e30e8d336a Mon Sep 17 00:00:00 2001
  2. From: Waldemar Brodkorb <wbx@openadk.org>
  3. Date: Wed, 20 Aug 2014 04:39:04 +0200
  4. Subject: [PATCH 4/9] sparc testsuite compile fix
  5. tst-spin1.c compile breaks with:
  6. test/nptl/tst-spin1.c:34: undefined reference to `pthread_spin_lock'
  7. pthread_spin_lock and pthread_spin_trylock is missing while
  8. building sparc. add the meta c files here.
  9. Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
  10. ---
  11. libpthread/nptl/sysdeps/sparc/pthread_spin_lock.c | 5 +++++
  12. libpthread/nptl/sysdeps/sparc/pthread_spin_trylock.c | 5 +++++
  13. 2 files changed, 10 insertions(+)
  14. create mode 100644 libpthread/nptl/sysdeps/sparc/pthread_spin_lock.c
  15. create mode 100644 libpthread/nptl/sysdeps/sparc/pthread_spin_trylock.c
  16. diff --git a/libpthread/nptl/sysdeps/sparc/pthread_spin_lock.c b/libpthread/nptl/sysdeps/sparc/pthread_spin_lock.c
  17. new file mode 100644
  18. index 0000000..dcc5ae2
  19. --- /dev/null
  20. +++ b/libpthread/nptl/sysdeps/sparc/pthread_spin_lock.c
  21. @@ -0,0 +1,5 @@
  22. +#if defined(__arch64__)
  23. +#include "sparc64/pthread_spin_lock.c"
  24. +#else
  25. +#include "sparc32/pthread_spin_lock.c"
  26. +#endif
  27. diff --git a/libpthread/nptl/sysdeps/sparc/pthread_spin_trylock.c b/libpthread/nptl/sysdeps/sparc/pthread_spin_trylock.c
  28. new file mode 100644
  29. index 0000000..af63eec
  30. --- /dev/null
  31. +++ b/libpthread/nptl/sysdeps/sparc/pthread_spin_trylock.c
  32. @@ -0,0 +1,5 @@
  33. +#if defined(__arch64__)
  34. +#include "sparc64/pthread_spin_trylock.c"
  35. +#else
  36. +#include "sparc32/pthread_spin_trylock.c"
  37. +#endif
  38. --
  39. 1.8.5.2 (Apple Git-48)