patches/ltrace/0.5.3/150-allow-configurable-arch.patch
author David Holsgrove <david.holsgrove@xilinx.com>
Wed Oct 03 15:59:22 2012 +1000 (2012-10-03)
changeset 3071 5243d1b432b1
permissions -rw-r--r--
scripts/gdb: If not building expat for gdb, disable

--with-expat=yes is unconditionally passed to the gdb configure
stage, instead of respecting the ${do_expat} decision.

Disable if not needed. Prevents error building canadian cross;

configure: error: expat is missing or unusable

Where configure stage fails to find expat on the host compiler.

Signed-off-by: "David Holsgrove" <david.holsgrove@xilinx.com>
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
Message-Id: <4c4410a2a8aab24a29c5.1349244128@localhost.localdomain>
PatchWork-Id: 188711
jocke@1685
     1
This patch is to ensure the proper ARCH is selected when cross compiling.  Make
jocke@1685
     2
sure to call the configure script with, e.g., HOST=arm ./configure to select 
jocke@1685
     3
the arm sysdeps.
jocke@1685
     4
jocke@1685
     5
	Joachim Nilsson <jocke@vmlinux.org>
jocke@1685
     6
jocke@1685
     7
diff -ru ltrace-0.5.3.orig/configure ltrace-0.5.3/configure
jocke@1685
     8
--- ltrace-0.5.3.orig/configure	2010-01-02 11:05:55.000000000 +0100
jocke@1685
     9
+++ ltrace-0.5.3/configure	2010-01-02 20:49:11.000000000 +0100
jocke@1685
    10
@@ -110,7 +110,7 @@
jocke@1685
    11
 #
jocke@1685
    12
 # Makefile.in -> Makefile
jocke@1685
    13
 #
jocke@1685
    14
-x_subst_vars='PACKAGE_VERSION HOST_OS INSTALL CC CPPFLAGS CFLAGS LDFLAGS LIBS iquote iquoteend prefix sysconfdir mandir docdir'
jocke@1685
    15
+x_subst_vars='PACKAGE_VERSION HOST HOST_OS INSTALL CC CPPFLAGS CFLAGS LDFLAGS LIBS iquote iquoteend prefix sysconfdir mandir docdir'
jocke@1685
    16
 
jocke@1685
    17
 for i in $x_subst_vars
jocke@1685
    18
 do
jocke@1685
    19
Only in ltrace-0.5.3: configure~
jocke@1685
    20
diff -ru ltrace-0.5.3.orig/Makefile.in ltrace-0.5.3/Makefile.in
jocke@1685
    21
--- ltrace-0.5.3.orig/Makefile.in	2010-01-02 11:05:55.000000000 +0100
jocke@1685
    22
+++ ltrace-0.5.3/Makefile.in	2010-01-03 01:28:41.000000000 +0100
jocke@1685
    23
@@ -1,10 +1,12 @@
jocke@1685
    24
 #
jocke@1685
    25
 # ltrace's Makefile.in
jocke@1685
    26
 #
jocke@1685
    27
-
jocke@1685
    28
+MY_TARGET       = @HOST@
jocke@1685
    29
+ifdef MY_TARGET
jocke@1685
    30
+ARCH            = $(MY_TARGET)
jocke@1685
    31
+endif
jocke@1685
    32
 #OS		:= $(shell uname -s)
jocke@1685
    33
 OS		:= @HOST_OS@
jocke@1685
    34
-
jocke@1685
    35
 TOPDIR		= $(shell pwd)
jocke@1685
    36
 
jocke@1685
    37
 prefix		= @prefix@
jocke@1685
    38
Only in ltrace-0.5.3: Makefile.in~
jocke@1685
    39
diff -ru ltrace-0.5.3.orig/sysdeps/linux-gnu/Makefile ltrace-0.5.3/sysdeps/linux-gnu/Makefile
jocke@1685
    40
--- ltrace-0.5.3.orig/sysdeps/linux-gnu/Makefile	2010-01-02 11:05:55.000000000 +0100
jocke@1685
    41
+++ ltrace-0.5.3/sysdeps/linux-gnu/Makefile	2010-01-02 20:49:51.000000000 +0100
jocke@1685
    42
@@ -1,4 +1,4 @@
jocke@1685
    43
-ARCH		:=	$(shell uname -m | sed \
jocke@1685
    44
+ARCH		?=	$(shell uname -m | sed \
jocke@1685
    45
 				-e s/i.86/i386/ \
jocke@1685
    46
 				-e s/sun4u/sparc64/ \
jocke@1685
    47
 				-e s/sparc64/sparc/ \
jocke@1685
    48
Only in ltrace-0.5.3/sysdeps/linux-gnu: Makefile~