patches/ltrace/0.5.3/150-allow-configurable-arch.patch
author Matthieu Crapet <mcrapet@gmail.com>
Wed Jun 06 12:03:12 2012 +0200 (2012-06-06)
changeset 2991 252ade1e9e17
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
     1 This patch is to ensure the proper ARCH is selected when cross compiling.  Make
     2 sure to call the configure script with, e.g., HOST=arm ./configure to select 
     3 the arm sysdeps.
     4 
     5 	Joachim Nilsson <jocke@vmlinux.org>
     6 
     7 diff -ru ltrace-0.5.3.orig/configure ltrace-0.5.3/configure
     8 --- ltrace-0.5.3.orig/configure	2010-01-02 11:05:55.000000000 +0100
     9 +++ ltrace-0.5.3/configure	2010-01-02 20:49:11.000000000 +0100
    10 @@ -110,7 +110,7 @@
    11  #
    12  # Makefile.in -> Makefile
    13  #
    14 -x_subst_vars='PACKAGE_VERSION HOST_OS INSTALL CC CPPFLAGS CFLAGS LDFLAGS LIBS iquote iquoteend prefix sysconfdir mandir docdir'
    15 +x_subst_vars='PACKAGE_VERSION HOST HOST_OS INSTALL CC CPPFLAGS CFLAGS LDFLAGS LIBS iquote iquoteend prefix sysconfdir mandir docdir'
    16  
    17  for i in $x_subst_vars
    18  do
    19 Only in ltrace-0.5.3: configure~
    20 diff -ru ltrace-0.5.3.orig/Makefile.in ltrace-0.5.3/Makefile.in
    21 --- ltrace-0.5.3.orig/Makefile.in	2010-01-02 11:05:55.000000000 +0100
    22 +++ ltrace-0.5.3/Makefile.in	2010-01-03 01:28:41.000000000 +0100
    23 @@ -1,10 +1,12 @@
    24  #
    25  # ltrace's Makefile.in
    26  #
    27 -
    28 +MY_TARGET       = @HOST@
    29 +ifdef MY_TARGET
    30 +ARCH            = $(MY_TARGET)
    31 +endif
    32  #OS		:= $(shell uname -s)
    33  OS		:= @HOST_OS@
    34 -
    35  TOPDIR		= $(shell pwd)
    36  
    37  prefix		= @prefix@
    38 Only in ltrace-0.5.3: Makefile.in~
    39 diff -ru ltrace-0.5.3.orig/sysdeps/linux-gnu/Makefile ltrace-0.5.3/sysdeps/linux-gnu/Makefile
    40 --- ltrace-0.5.3.orig/sysdeps/linux-gnu/Makefile	2010-01-02 11:05:55.000000000 +0100
    41 +++ ltrace-0.5.3/sysdeps/linux-gnu/Makefile	2010-01-02 20:49:51.000000000 +0100
    42 @@ -1,4 +1,4 @@
    43 -ARCH		:=	$(shell uname -m | sed \
    44 +ARCH		?=	$(shell uname -m | sed \
    45  				-e s/i.86/i386/ \
    46  				-e s/sun4u/sparc64/ \
    47  				-e s/sparc64/sparc/ \
    48 Only in ltrace-0.5.3/sysdeps/linux-gnu: Makefile~