Add a patch to enqable NPTL build on ARM OABI with glibc-2.6.1.
Fix a comment.
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/glibc/ports-2.6.1/100-ARM-NPTL.patch Thu Sep 06 12:38:52 2007 +0000
1.3 @@ -0,0 +1,13 @@
1.4 +diff -durN glibc-2.6.1.orig/glibc-ports-2.6.1/sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h glibc-2.6.1/glibc-ports-2.6.1/sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h
1.5 +--- glibc-ports-2.6.1.orig/sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h 2005-11-16 20:22:59.000000000 +0100
1.6 ++++ glibc-ports-2.6.1/sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h 2007-09-06 13:53:16.000000000 +0200
1.7 +@@ -126,3 +126,9 @@
1.8 + # define NO_CANCELLATION 1
1.9 +
1.10 + #endif
1.11 ++
1.12 ++#ifndef __ASSEMBLER__
1.13 ++# define RTLD_SINGLE_THREAD_P \
1.14 ++ __builtin_expect (THREAD_GETMEM (THREAD_SELF, \
1.15 ++ header.multiple_threads) == 0, 1)
1.16 ++#endif
2.1 --- a/scripts/functions Thu Sep 06 10:49:05 2007 +0000
2.2 +++ b/scripts/functions Thu Sep 06 12:38:52 2007 +0000
2.3 @@ -435,7 +435,7 @@
2.4 if [ "${libc_addon}" = "y" ]; then
2.5 # Some addons tarball directly contian the correct addon directory,
2.6 # while others have the addon directory named ofter the tarball.
2.7 - # Fix that bu always using the short name (eg: linuxthreads, ports, etc...)
2.8 + # Fix that by always using the short name (eg: linuxthreads, ports, etc...)
2.9 addon_short_name=`echo "${file}" |sed -r -e 's/^[^-]+-//; s/-[^-]+$//;'`
2.10 [ -d "${addon_short_name}" ] || ln -s "${file}" "${addon_short_name}"
2.11 # If libc addon, we're already in the correct place