1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/ltrace/0.5.3/150-allow-configurable-arch.patch Mon Sep 12 14:09:31 2011 +0200
1.3 @@ -0,0 +1,48 @@
1.4 +This patch is to ensure the proper ARCH is selected when cross compiling. Make
1.5 +sure to call the configure script with, e.g., HOST=arm ./configure to select
1.6 +the arm sysdeps.
1.7 +
1.8 + Joachim Nilsson <jocke@vmlinux.org>
1.9 +
1.10 +diff -ru ltrace-0.5.3.orig/configure ltrace-0.5.3/configure
1.11 +--- ltrace-0.5.3.orig/configure 2010-01-02 11:05:55.000000000 +0100
1.12 ++++ ltrace-0.5.3/configure 2010-01-02 20:49:11.000000000 +0100
1.13 +@@ -110,7 +110,7 @@
1.14 + #
1.15 + # Makefile.in -> Makefile
1.16 + #
1.17 +-x_subst_vars='PACKAGE_VERSION HOST_OS INSTALL CC CPPFLAGS CFLAGS LDFLAGS LIBS iquote iquoteend prefix sysconfdir mandir docdir'
1.18 ++x_subst_vars='PACKAGE_VERSION HOST HOST_OS INSTALL CC CPPFLAGS CFLAGS LDFLAGS LIBS iquote iquoteend prefix sysconfdir mandir docdir'
1.19 +
1.20 + for i in $x_subst_vars
1.21 + do
1.22 +Only in ltrace-0.5.3: configure~
1.23 +diff -ru ltrace-0.5.3.orig/Makefile.in ltrace-0.5.3/Makefile.in
1.24 +--- ltrace-0.5.3.orig/Makefile.in 2010-01-02 11:05:55.000000000 +0100
1.25 ++++ ltrace-0.5.3/Makefile.in 2010-01-03 01:28:41.000000000 +0100
1.26 +@@ -1,10 +1,12 @@
1.27 + #
1.28 + # ltrace's Makefile.in
1.29 + #
1.30 +-
1.31 ++MY_TARGET = @HOST@
1.32 ++ifdef MY_TARGET
1.33 ++ARCH = $(MY_TARGET)
1.34 ++endif
1.35 + #OS := $(shell uname -s)
1.36 + OS := @HOST_OS@
1.37 +-
1.38 + TOPDIR = $(shell pwd)
1.39 +
1.40 + prefix = @prefix@
1.41 +Only in ltrace-0.5.3: Makefile.in~
1.42 +diff -ru ltrace-0.5.3.orig/sysdeps/linux-gnu/Makefile ltrace-0.5.3/sysdeps/linux-gnu/Makefile
1.43 +--- ltrace-0.5.3.orig/sysdeps/linux-gnu/Makefile 2010-01-02 11:05:55.000000000 +0100
1.44 ++++ ltrace-0.5.3/sysdeps/linux-gnu/Makefile 2010-01-02 20:49:51.000000000 +0100
1.45 +@@ -1,4 +1,4 @@
1.46 +-ARCH := $(shell uname -m | sed \
1.47 ++ARCH ?= $(shell uname -m | sed \
1.48 + -e s/i.86/i386/ \
1.49 + -e s/sun4u/sparc64/ \
1.50 + -e s/sparc64/sparc/ \
1.51 +Only in ltrace-0.5.3/sysdeps/linux-gnu: Makefile~