patches/libelf/0.8.13/100-fix-64-bit-detection.patch
author Matthieu Crapet <mcrapet@gmail.com>
Wed Jun 06 12:03:12 2012 +0200 (2012-06-06)
changeset 2991 252ade1e9e17
parent 1562 fdf936326ccd
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@968
     1
diff -dur libelf-0.8.10.orig/configure libelf-0.8.10/configure
yann@968
     2
--- libelf-0.8.10.orig/configure	2007-09-07 14:08:06.000000000 +0200
yann@968
     3
+++ libelf-0.8.10/configure	2008-10-23 22:43:19.000000000 +0200
yann@968
     4
@@ -1595,7 +1595,7 @@
yann@968
     5
   echo $ac_n "(cached) $ac_c" 1>&6
yann@968
     6
 else
yann@968
     7
   if test "$cross_compiling" = yes; then
yann@968
     8
-  ac_cv_sizeof_long_long=0
yann@968
     9
+  ac_cv_sizeof_long_long=8
yann@968
    10
 else
yann@968
    11
   cat > conftest.$ac_ext <<EOF
yann@968
    12
 #line 1602 "configure"
yann@968
    13
diff -dur libelf-0.8.10.orig/configure.in libelf-0.8.10/configure.in
yann@968
    14
--- libelf-0.8.10.orig/configure.in	2007-09-07 14:07:59.000000000 +0200
yann@968
    15
+++ libelf-0.8.10/configure.in	2008-10-23 22:43:10.000000000 +0200
yann@968
    16
@@ -90,7 +90,7 @@
yann@968
    17
 AC_CHECK_SIZEOF(short,2)
yann@968
    18
 AC_CHECK_SIZEOF(int,4)
yann@968
    19
 AC_CHECK_SIZEOF(long,4)
yann@968
    20
-AC_CHECK_SIZEOF(long long,0)
yann@968
    21
+AC_CHECK_SIZEOF(long long,8)
yann@968
    22
 # Windows port
yann@968
    23
 AC_CHECK_SIZEOF(__int64, 0)
yann@968
    24