patches/ltrace/0.5.3/150-allow-configurable-arch.patch
author "Benoît Thébaudeau" <benoit.thebaudeau@advansee.com>
Mon Apr 16 15:25:36 2012 +0200 (2012-04-16)
changeset 2941 13e40098fffc
permissions -rw-r--r--
cc/gcc: update Linaro GCC revisions to 2012.04

Update Linaro GCC with the latest available revisions.

The 4.7 revision is also released, but the infrastructure is not yet ready for
it in CT-NG.

Signed-off-by: "Benoît Thébaudeau" <benoit.thebaudeau@advansee.com>
     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~