patches/glibc/2.9/520-sh-no-asm-elf-header.patch
author Matthieu Crapet <mcrapet@gmail.com>
Wed Jun 06 12:03:12 2012 +0200 (2012-06-06)
changeset 2991 252ade1e9e17
parent 1246 aa674ae58972
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@1246
     1
2007-03-13  Mike Frysinger  <vapier@gentoo.org>
yann@1246
     2
yann@1246
     3
	* sysdeps/unix/sysv/linux/sh/sys/procfs.h: Copy Linux's asm-sh/elf.h types.
yann@1246
     4
yann@1246
     5
--- glibc-2_9/sysdeps/unix/sysv/linux/sh/sys/procfs.h
yann@1246
     6
+++ glibc-2_9/sysdeps/unix/sysv/linux/sh/sys/procfs.h
yann@1246
     7
@@ -29,10 +29,19 @@
yann@1246
     8
 #include <sys/types.h>
yann@1246
     9
 #include <sys/ucontext.h>
yann@1246
    10
 #include <sys/user.h>
yann@1246
    11
-#include <asm/elf.h>
yann@1246
    12
 
yann@1246
    13
 __BEGIN_DECLS
yann@1246
    14
 
yann@1246
    15
+/*
yann@1246
    16
+ * ELF register definitions...
yann@1246
    17
+ */
yann@1246
    18
+typedef unsigned long elf_greg_t;
yann@1246
    19
+
yann@1246
    20
+#define ELF_NGREG (sizeof (struct pt_regs) / sizeof(elf_greg_t))
yann@1246
    21
+typedef elf_greg_t elf_gregset_t[ELF_NGREG];
yann@1246
    22
+
yann@1246
    23
+typedef struct user_fpu_struct elf_fpregset_t;
yann@1246
    24
+
yann@1246
    25
 struct elf_siginfo
yann@1246
    26
   {
yann@1246
    27
     int si_signo;			/* Signal number.  */