mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-19 03:06:42 +00:00
Add a patch to enqable NPTL build on ARM OABI with glibc-2.6.1.
Fix a comment.
This commit is contained in:
parent
1cf24eb2a4
commit
0bee99ed38
13
patches/glibc/ports-2.6.1/100-ARM-NPTL.patch
Normal file
13
patches/glibc/ports-2.6.1/100-ARM-NPTL.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
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
|
||||||
|
--- glibc-ports-2.6.1.orig/sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h 2005-11-16 20:22:59.000000000 +0100
|
||||||
|
+++ glibc-ports-2.6.1/sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h 2007-09-06 13:53:16.000000000 +0200
|
||||||
|
@@ -126,3 +126,9 @@
|
||||||
|
# define NO_CANCELLATION 1
|
||||||
|
|
||||||
|
#endif
|
||||||
|
+
|
||||||
|
+#ifndef __ASSEMBLER__
|
||||||
|
+# define RTLD_SINGLE_THREAD_P \
|
||||||
|
+ __builtin_expect (THREAD_GETMEM (THREAD_SELF, \
|
||||||
|
+ header.multiple_threads) == 0, 1)
|
||||||
|
+#endif
|
@ -435,7 +435,7 @@ CT_ExtractAndPatch() {
|
|||||||
if [ "${libc_addon}" = "y" ]; then
|
if [ "${libc_addon}" = "y" ]; then
|
||||||
# Some addons tarball directly contian the correct addon directory,
|
# Some addons tarball directly contian the correct addon directory,
|
||||||
# while others have the addon directory named ofter the tarball.
|
# while others have the addon directory named ofter the tarball.
|
||||||
# Fix that bu always using the short name (eg: linuxthreads, ports, etc...)
|
# Fix that by always using the short name (eg: linuxthreads, ports, etc...)
|
||||||
addon_short_name=`echo "${file}" |sed -r -e 's/^[^-]+-//; s/-[^-]+$//;'`
|
addon_short_name=`echo "${file}" |sed -r -e 's/^[^-]+-//; s/-[^-]+$//;'`
|
||||||
[ -d "${addon_short_name}" ] || ln -s "${file}" "${addon_short_name}"
|
[ -d "${addon_short_name}" ] || ln -s "${file}" "${addon_short_name}"
|
||||||
# If libc addon, we're already in the correct place
|
# If libc addon, we're already in the correct place
|
||||||
|
Loading…
Reference in New Issue
Block a user