patches/glibc/ports-2.9/100-arm_linux_tls.patch
author Matthieu Crapet <mcrapet@gmail.com>
Wed Jun 06 12:03:12 2012 +0200 (2012-06-06)
changeset 2991 252ade1e9e17
parent 1273 33f0fcab7f03
permissions -rw-r--r--
libc/eglibc: fix missing LIBC_TRY_CC_OPTION definition (eglibc 2.15)

Upstream SVN is currently broken:
http://www.eglibc.org/svn/branches/eglibc-2_15/libc/

LIBC_TRY_CC_OPTION macro is not defined in aclocal.m4.
This patch fix the configure script.

Once upstream branch will be fixed this patch could be reverted.

Related patch (committed to eglibc trunk):
Use autoconf macro for testing compiler options with empty input
http://sourceware.org/ml/libc-alpha/2012-03/msg00816.html

Signed-off-by: Matthieu Crapet <mcrapet@gmail.com>

diff -r 1f6c8e4b2b92 -r d10afc5bcc25
patches/eglibc/2_15/110-aclocal-LIBC_TRY_CC_OPTION.patch
yann@1216
     1
Original patch from http://www.nabble.com/arm-linux-compilation-failure-and-possible-fix-td19229074.html
yann@1216
     2
yann@1276
     3
diff -durN glibc-2.9.orig/ports/sysdeps/unix/sysv/linux/arm/sysdep.h glibc-2.9/ports/sysdeps/unix/sysv/linux/arm/sysdep.h
yann@1276
     4
--- glibc-2.9.orig/ports/sysdeps/unix/sysv/linux/arm/sysdep.h 25 Nov 2008 16:37:26 -0000 1.33
yann@1276
     5
+++ glibc-2.9/ports/sysdeps/unix/sysv/linux/arm/sysdep.h 27 Jan 2009 15:35:38 -0000
yann@1216
     6
@@ -28,6 +28,8 @@
yann@1216
     7
 /* Defines RTLD_PRIVATE_ERRNO and USE_DL_SYSINFO.  */
yann@1216
     8
 #include <dl-sysdep.h>
yann@1216
     9
 
yann@1216
    10
+#include <tls.h>
yann@1216
    11
+
yann@1216
    12
 /* For Linux we can use the system call table in the header file
yann@1216
    13
	/usr/include/asm/unistd.h
yann@1216
    14
    of the kernel.  But these symbols do not follow the SYS_* syntax