patches/glibc/ports-2.6.1/100-ARM-NPTL.patch
author |
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> |
|
Sun Sep 12 23:51:25 2010 +0200 (2010-09-12) |
changeset 2123 |
ff2181adbd28 |
parent 365 |
ba634892cc18
|
permissions |
-rw-r--r-- |
cc/gcc: disable complibs if not selected
Force gcc to not link with some companion libraries when
there are not needed (because selected-out).
There is no option to tell gcc *not* to build the Graphite and/or
LTO stuff. They *will* be built if gcc finds the suitable companion
libraries. If we do not provide them, but the host has them, then
gcc *will* find them, and link with them.
Consider the following:
- host has suitable PPL and CLooG (eg. Debian Squeeze)
- user wants to build gcc>=4.4
- user de-selects GRAPHITE
- gcc will find the hosts PPL and CLooG, and will use them
- the user moves the toolchain to an older host that does
not have them (eg. Debian Lenny)
- the toolchain fails, when it was properly setup not to
So, explicitly tell gcc *not* to use unneeded companion libs.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
yann@365
|
1 |
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
|
yann@367
|
2 |
--- glibc-2.6.1.orig/glibc-ports-2.6.1/sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h 2005-11-16 20:22:59.000000000 +0100
|
yann@367
|
3 |
+++ glibc-2.6.1/glibc-ports-2.6.1/sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h 2007-09-06 13:53:16.000000000 +0200
|
yann@365
|
4 |
@@ -126,3 +126,9 @@
|
yann@365
|
5 |
# define NO_CANCELLATION 1
|
yann@365
|
6 |
|
yann@365
|
7 |
#endif
|
yann@365
|
8 |
+
|
yann@365
|
9 |
+#ifndef __ASSEMBLER__
|
yann@365
|
10 |
+# define RTLD_SINGLE_THREAD_P \
|
yann@365
|
11 |
+ __builtin_expect (THREAD_GETMEM (THREAD_SELF, \
|
yann@365
|
12 |
+ header.multiple_threads) == 0, 1)
|
yann@365
|
13 |
+#endif
|