patches/ltrace/0.5.3/150-allow-configurable-arch.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Jan 12 19:24:03 2010 +0100 (2010-01-12)
changeset 1761 88020b2c3246
permissions -rw-r--r--
scripts/functions: change handling of nochdir

- 'nochdir' must be the first option
- have systematic pushd/popd, even if nochdir
     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~