1.1 --- a/config/debug/ltrace.in Sun Jan 03 18:40:35 2010 +0100
1.2 +++ b/config/debug/ltrace.in Sun Jan 03 16:46:58 2010 +0100
1.3 @@ -14,6 +14,12 @@
1.4 # Don't remove next line
1.5 # CT_INSERT_VERSION_BELOW
1.6
1.7 +config LTRACE_V_0_5_3
1.8 + bool
1.9 + prompt "0.5.3 (EXPERIMENTAL)"
1.10 + depends on EXPERIMENTAL
1.11 + select LTRACE_0_5_3_or_later
1.12 +
1.13 config LTRACE_V_0_5_2
1.14 bool
1.15 prompt "0.5.2"
1.16 @@ -39,7 +45,12 @@
1.17 string
1.18 # Don't remove next line
1.19 # CT_INSERT_VERSION_STRING_BELOW
1.20 + default "0.5.3" if LTRACE_V_0_5_3
1.21 default "0.5.2" if LTRACE_V_0_5_2
1.22 default "0.5.1" if LTRACE_V_0_5_1
1.23 default "0.5" if LTRACE_V_0_5
1.24 default "0.4" if LTRACE_V_0_4
1.25 +
1.26 +config LTRACE_0_5_3_or_later
1.27 + bool
1.28 + default n
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/patches/ltrace/0.5.3/100-allow-cross-compile.patch Sun Jan 03 16:46:58 2010 +0100
2.3 @@ -0,0 +1,84 @@
2.4 +This patch is courtesy of OpenEmbedded, by Khem Raj <raj.khem@gmail.com>
2.5 +
2.6 +http://cgit.openembedded.org/cgit.cgi/openembedded/commit/?id=b85b779688f0abc389e3c25d06b54de8b86385c1
2.7 +
2.8 +Index: ltrace-0.5.3/common.h
2.9 +===================================================================
2.10 +--- ltrace-0.5.3.orig/common.h 2009-10-23 23:13:45.700282578 -0700
2.11 ++++ ltrace-0.5.3/common.h 2009-10-23 23:14:13.550371553 -0700
2.12 +@@ -1,3 +1,5 @@
2.13 ++#ifndef COMMON_H
2.14 ++#define COMMON_H
2.15 + #include <sys/types.h>
2.16 + #include <sys/time.h>
2.17 + #include <stdio.h>
2.18 +@@ -251,3 +253,5 @@ extern void * sym2addr(Process *, struct
2.19 + #if 0 /* not yet */
2.20 + extern int umoven(Process * proc, void * addr, int len, void * laddr);
2.21 + #endif
2.22 ++#endif
2.23 ++
2.24 +Index: ltrace-0.5.3/configure
2.25 +===================================================================
2.26 +--- ltrace-0.5.3.orig/configure 2009-10-23 23:13:45.630316494 -0700
2.27 ++++ ltrace-0.5.3/configure 2009-10-23 23:13:59.672869527 -0700
2.28 +@@ -30,7 +30,7 @@ int main () {
2.29 + return cplus_demangle();
2.30 + }
2.31 + EOF
2.32 +-if gcc conftest.c -liberty 2>/dev/null
2.33 ++if $CC conftest.c -liberty 2>/dev/null
2.34 + then
2.35 + HAVE_LIBIBERTY=1
2.36 + echo "yes"
2.37 +@@ -48,7 +48,7 @@ int main () {
2.38 + return __cxa_demangle();
2.39 + }
2.40 + EOF
2.41 +-if gcc conftest.c -lsupc++ 2>/dev/null
2.42 ++if $CC conftest.c -lsupc++ 2>/dev/null
2.43 + then
2.44 + HAVE_LIBSUPC__=1
2.45 + echo "yes"
2.46 +@@ -67,7 +67,7 @@ int main () {
2.47 + return 0;
2.48 + }
2.49 + EOF
2.50 +-if gcc conftest.c 2>/dev/null
2.51 ++if $CC conftest.c 2>/dev/null
2.52 + then
2.53 + HAVE_ELF_C_READ_MMAP=1
2.54 + echo "yes"
2.55 +@@ -77,15 +77,12 @@ else
2.56 + fi
2.57 + rm -f conftest.c a.out
2.58 +
2.59 +-CC=gcc
2.60 +-CPPFLAGS=' -I /usr/include/libelf'
2.61 + CFLAGS='-g -O2'
2.62 + LIBS='-lelf -lsupc++ -liberty '
2.63 +-INSTALL='/usr/bin/install -c'
2.64 ++INSTALL='install -c'
2.65 + iquote='-iquote '
2.66 + iquoteend=''
2.67 +
2.68 +-prefix=/usr/local
2.69 + sysconfdir='${prefix}/etc'
2.70 + bindir='${prefix}/bin'
2.71 + mandir='${prefix}/share/man'
2.72 +Index: ltrace-0.5.3/debug.h
2.73 +===================================================================
2.74 +--- ltrace-0.5.3.orig/debug.h 2009-10-23 23:13:45.670276809 -0700
2.75 ++++ ltrace-0.5.3/debug.h 2009-10-23 23:14:26.440319785 -0700
2.76 +@@ -1,3 +1,5 @@
2.77 ++#ifndef DEBUG_H
2.78 ++#define DEBUG_H
2.79 + #include <features.h>
2.80 +
2.81 + /* debug levels:
2.82 +@@ -14,4 +16,4 @@ void debug_(int level, const char *file,
2.83 + int xinfdump(long, void *, int);
2.84 +
2.85 + # define debug(level, expr...) debug_(level, __FILE__, __LINE__, expr)
2.86 +-
2.87 ++#endif
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
3.2 +++ b/patches/ltrace/0.5.3/110-alpha-support.patch Sun Jan 03 16:46:58 2010 +0100
3.3 @@ -0,0 +1,11 @@
3.4 +diff -ru ltrace-0.5.3.orig/sysdeps/linux-gnu/Makefile ltrace-0.5.3/sysdeps/linux-gnu/Makefile
3.5 +--- ltrace-0.5.3.orig/sysdeps/linux-gnu/Makefile 2009-07-25 17:13:02.000000000 +0200
3.6 ++++ ltrace-0.5.3/sysdeps/linux-gnu/Makefile 2010-01-01 22:20:45.000000000 +0100
3.7 +@@ -2,6 +2,7 @@
3.8 + -e s/i.86/i386/ \
3.9 + -e s/sun4u/sparc64/ \
3.10 + -e s/sparc64/sparc/ \
3.11 ++ -e s/alpha.*/alpha/ \
3.12 + -e s/arm.*/arm/ \
3.13 + -e s/sa110/arm/ \
3.14 + -e s/ppc64/ppc/ \
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
4.2 +++ b/patches/ltrace/0.5.3/120-debian-ltrace_0.5.3-2.patch Sun Jan 03 16:46:58 2010 +0100
4.3 @@ -0,0 +1,78 @@
4.4 +Debian patch courtesy of the Debian ltrace maintainer Juan Cespedes <cespedes@debian.org>
4.5 +
4.6 +--- ltrace-0.5.3.orig/sysdeps/linux-gnu/breakpoint.c
4.7 ++++ ltrace-0.5.3/sysdeps/linux-gnu/breakpoint.c
4.8 +@@ -6,8 +6,6 @@
4.9 + #include "common.h"
4.10 + #include "arch.h"
4.11 +
4.12 +-static unsigned char break_insn[] = BREAKPOINT_VALUE;
4.13 +-
4.14 + #ifdef ARCH_HAVE_ENABLE_BREAKPOINT
4.15 + extern void arch_enable_breakpoint(pid_t, Breakpoint *);
4.16 + void
4.17 +@@ -20,6 +18,9 @@
4.18 + arch_enable_breakpoint(pid, sbp);
4.19 + }
4.20 + #else
4.21 ++
4.22 ++static unsigned char break_insn[] = BREAKPOINT_VALUE;
4.23 ++
4.24 + void
4.25 + enable_breakpoint(pid_t pid, Breakpoint *sbp) {
4.26 + unsigned int i, j;
4.27 +--- ltrace-0.5.3.orig/sysdeps/linux-gnu/arm/breakpoint.c
4.28 ++++ ltrace-0.5.3/sysdeps/linux-gnu/arm/breakpoint.c
4.29 +@@ -24,10 +24,7 @@
4.30 +
4.31 + #include <sys/ptrace.h>
4.32 + #include "config.h"
4.33 +-#include "arch.h"
4.34 +-#include "options.h"
4.35 +-#include "output.h"
4.36 +-#include "debug.h"
4.37 ++#include "common.h"
4.38 +
4.39 + void
4.40 + arch_enable_breakpoint(pid_t pid, Breakpoint *sbp) {
4.41 +@@ -59,8 +56,6 @@
4.42 + void
4.43 + arch_disable_breakpoint(pid_t pid, const Breakpoint *sbp) {
4.44 + unsigned int i, j;
4.45 +- const unsigned char break_insn[] = BREAKPOINT_VALUE;
4.46 +- const unsigned char thumb_break_insn[] = THUMB_BREAKPOINT_VALUE;
4.47 +
4.48 + debug(1, "arch_disable_breakpoint(%d,%p)", pid, sbp->addr);
4.49 +
4.50 +--- ltrace-0.5.3.orig/sysdeps/linux-gnu/ia64/plt.c
4.51 ++++ ltrace-0.5.3/sysdeps/linux-gnu/ia64/plt.c
4.52 +@@ -1,4 +1,5 @@
4.53 + #include <gelf.h>
4.54 ++#include <sys/ptrace.h>
4.55 + #include "common.h"
4.56 +
4.57 + /* A bundle is 128 bits */
4.58 +--- ltrace-0.5.3.orig/sysdeps/linux-gnu/ia64/breakpoint.c
4.59 ++++ ltrace-0.5.3/sysdeps/linux-gnu/ia64/breakpoint.c
4.60 +@@ -6,10 +6,7 @@
4.61 +
4.62 + #include <sys/ptrace.h>
4.63 + #include <string.h>
4.64 +-#include "arch.h"
4.65 +-#include "options.h"
4.66 +-#include "output.h"
4.67 +-#include "debug.h"
4.68 ++#include "common.h"
4.69 +
4.70 + static long long
4.71 + extract_bit_field(char *bundle, int from, int len) {
4.72 +--- ltrace-0.5.3.orig/sysdeps/linux-gnu/ia64/regs.c
4.73 ++++ ltrace-0.5.3/sysdeps/linux-gnu/ia64/regs.c
4.74 +@@ -7,7 +7,6 @@
4.75 + #include <asm/rse.h>
4.76 +
4.77 + #include <stddef.h>
4.78 +-#include "debug.h"
4.79 + #include "common.h"
4.80 +
4.81 + void *
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
5.2 +++ b/patches/ltrace/0.5.3/130-add-sysdep.patch Sun Jan 03 16:46:58 2010 +0100
5.3 @@ -0,0 +1,17 @@
5.4 +This patch is courtesy of OpenEmbedded, by Khem Raj <raj.khem@gmail.com>
5.5 +
5.6 +http://cgit.openembedded.org/cgit.cgi/openembedded/commit/?id=b85b779688f0abc389e3c25d06b54de8b86385c1
5.7 +
5.8 +Index: ltrace-0.5.3/Makefile.in
5.9 +===================================================================
5.10 +--- ltrace-0.5.3.orig/Makefile.in 2009-10-23 22:06:08.130304691 -0700
5.11 ++++ ltrace-0.5.3/Makefile.in 2009-10-23 22:06:53.160369614 -0700
5.12 +@@ -39,6 +39,8 @@ ltrace: main.o libltrace.a
5.13 + libltrace.a: sysdeps/sysdep.o $(OBJ)
5.14 + $(AR) rcv $@ $^
5.15 +
5.16 ++$(OBJ): sysdeps/sysdep.o
5.17 ++
5.18 + sysdeps/sysdep.o: dummy
5.19 + $(MAKE) -C sysdeps/$(OS)
5.20 +
6.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
6.2 +++ b/patches/ltrace/0.5.3/140-mips-remove-CP.patch Sun Jan 03 16:46:58 2010 +0100
6.3 @@ -0,0 +1,16 @@
6.4 +This patch is courtesy of OpenEmbedded, by Khem Raj <raj.khem@gmail.com>
6.5 +
6.6 +http://cgit.openembedded.org/cgit.cgi/openembedded/commit/?id=b85b779688f0abc389e3c25d06b54de8b86385c1
6.7 +
6.8 +Index: ltrace-0.5.3/sysdeps/linux-gnu/mipsel/trace.c
6.9 +===================================================================
6.10 +--- ltrace-0.5.3.orig/sysdeps/linux-gnu/mipsel/trace.c 2009-10-23 23:15:59.822783128 -0700
6.11 ++++ ltrace-0.5.3/sysdeps/linux-gnu/mipsel/trace.c 2009-10-23 23:16:10.441268788 -0700
6.12 +@@ -127,7 +127,6 @@ gimme_arg(enum tof type, Process *proc,
6.13 + return ret;
6.14 + } else {
6.15 + // If we need this, I think we can look at [sp+16] for arg_num==4.
6.16 +- CP;
6.17 + return 0;
6.18 + }
6.19 + }
7.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
7.2 +++ b/patches/ltrace/0.5.3/140-mips.patch Sun Jan 03 16:46:58 2010 +0100
7.3 @@ -0,0 +1,40 @@
7.4 +This patch is courtesy of OpenEmbedded, by Khem Raj <raj.khem@gmail.com>
7.5 +
7.6 +http://cgit.openembedded.org/cgit.cgi/openembedded/commit/?id=b85b779688f0abc389e3c25d06b54de8b86385c1
7.7 +
7.8 +Index: ltrace-0.5.3/sysdeps/linux-gnu/mipsel/plt.c
7.9 +===================================================================
7.10 +--- ltrace-0.5.3.orig/sysdeps/linux-gnu/mipsel/plt.c 2009-10-23 23:25:59.292780574 -0700
7.11 ++++ ltrace-0.5.3/sysdeps/linux-gnu/mipsel/plt.c 2009-10-23 23:26:22.671522220 -0700
7.12 +@@ -1,4 +1,4 @@
7.13 +-#include <debug.h>
7.14 ++#include "debug.h"
7.15 + #include <gelf.h>
7.16 + #include <sys/ptrace.h>
7.17 + #include "common.h"
7.18 +Index: ltrace-0.5.3/sysdeps/linux-gnu/mipsel/regs.c
7.19 +===================================================================
7.20 +--- ltrace-0.5.3.orig/sysdeps/linux-gnu/mipsel/regs.c 2009-10-23 23:25:59.312777529 -0700
7.21 ++++ ltrace-0.5.3/sysdeps/linux-gnu/mipsel/regs.c 2009-10-23 23:26:08.190311896 -0700
7.22 +@@ -4,7 +4,6 @@
7.23 + #include <sys/types.h>
7.24 + #include <sys/ptrace.h>
7.25 + #include <asm/ptrace.h>
7.26 +-#include <linux/user.h>
7.27 +
7.28 + #include "common.h"
7.29 + #include "mipsel.h"
7.30 +Index: ltrace-0.5.3/handle_event.c
7.31 +===================================================================
7.32 +--- ltrace-0.5.3.orig/handle_event.c 2009-10-23 23:29:48.780274445 -0700
7.33 ++++ ltrace-0.5.3/handle_event.c 2009-10-23 23:37:32.260284055 -0700
7.34 +@@ -573,7 +573,8 @@ handle_breakpoint(Event *event) {
7.35 + void *old_addr;
7.36 + struct library_symbol *sym= event->proc->callstack[i].c_un.libfunc;
7.37 + assert(sym);
7.38 +- old_addr = dict_find_entry(event->proc->breakpoints, sym2addr(event->proc, sym))->addr;
7.39 ++ struct Breakpoint *tbp = dict_find_entry(event->proc->breakpoints, sym2addr(event->proc, sym));
7.40 ++ old_addr = tbp->addr;
7.41 + addr=sym2addr(event->proc,sym);
7.42 + assert(old_addr !=0 && addr !=0);
7.43 + if(addr != old_addr){
8.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
8.2 +++ b/patches/ltrace/0.5.3/150-allow-configurable-arch.patch Sun Jan 03 16:46:58 2010 +0100
8.3 @@ -0,0 +1,48 @@
8.4 +This patch is to ensure the proper ARCH is selected when cross compiling. Make
8.5 +sure to call the configure script with, e.g., HOST=arm ./configure to select
8.6 +the arm sysdeps.
8.7 +
8.8 + Joachim Nilsson <jocke@vmlinux.org>
8.9 +
8.10 +diff -ru ltrace-0.5.3.orig/configure ltrace-0.5.3/configure
8.11 +--- ltrace-0.5.3.orig/configure 2010-01-02 11:05:55.000000000 +0100
8.12 ++++ ltrace-0.5.3/configure 2010-01-02 20:49:11.000000000 +0100
8.13 +@@ -110,7 +110,7 @@
8.14 + #
8.15 + # Makefile.in -> Makefile
8.16 + #
8.17 +-x_subst_vars='PACKAGE_VERSION HOST_OS INSTALL CC CPPFLAGS CFLAGS LDFLAGS LIBS iquote iquoteend prefix sysconfdir mandir docdir'
8.18 ++x_subst_vars='PACKAGE_VERSION HOST HOST_OS INSTALL CC CPPFLAGS CFLAGS LDFLAGS LIBS iquote iquoteend prefix sysconfdir mandir docdir'
8.19 +
8.20 + for i in $x_subst_vars
8.21 + do
8.22 +Only in ltrace-0.5.3: configure~
8.23 +diff -ru ltrace-0.5.3.orig/Makefile.in ltrace-0.5.3/Makefile.in
8.24 +--- ltrace-0.5.3.orig/Makefile.in 2010-01-02 11:05:55.000000000 +0100
8.25 ++++ ltrace-0.5.3/Makefile.in 2010-01-03 01:28:41.000000000 +0100
8.26 +@@ -1,10 +1,12 @@
8.27 + #
8.28 + # ltrace's Makefile.in
8.29 + #
8.30 +-
8.31 ++MY_TARGET = @HOST@
8.32 ++ifdef MY_TARGET
8.33 ++ARCH = $(MY_TARGET)
8.34 ++endif
8.35 + #OS := $(shell uname -s)
8.36 + OS := @HOST_OS@
8.37 +-
8.38 + TOPDIR = $(shell pwd)
8.39 +
8.40 + prefix = @prefix@
8.41 +Only in ltrace-0.5.3: Makefile.in~
8.42 +diff -ru ltrace-0.5.3.orig/sysdeps/linux-gnu/Makefile ltrace-0.5.3/sysdeps/linux-gnu/Makefile
8.43 +--- ltrace-0.5.3.orig/sysdeps/linux-gnu/Makefile 2010-01-02 11:05:55.000000000 +0100
8.44 ++++ ltrace-0.5.3/sysdeps/linux-gnu/Makefile 2010-01-02 20:49:51.000000000 +0100
8.45 +@@ -1,4 +1,4 @@
8.46 +-ARCH := $(shell uname -m | sed \
8.47 ++ARCH ?= $(shell uname -m | sed \
8.48 + -e s/i.86/i386/ \
8.49 + -e s/sun4u/sparc64/ \
8.50 + -e s/sparc64/sparc/ \
8.51 +Only in ltrace-0.5.3/sysdeps/linux-gnu: Makefile~
9.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
9.2 +++ b/patches/ltrace/0.5.3/160-fix-missing-ptrace-defines.patch Sun Jan 03 16:46:58 2010 +0100
9.3 @@ -0,0 +1,72 @@
9.4 +This patch tries to fix the issue when PTRACE_EVENT_FORK is not found in the standard
9.5 +system headers. The begininngs of this was already in place in trace.c, this patch
9.6 +only takes that idea and puts it in a shared include file for trace.c *and* events.c.
9.7 +The latter of which otherwise fails to build on Arm.
9.8 +
9.9 + Joachim Nilsson <jocke@vmlinux.org>
9.10 +
9.11 +diff -ruN ltrace-0.5.3.orig/sysdeps/linux-gnu/events.c ltrace-0.5.3/sysdeps/linux-gnu/events.c
9.12 +--- ltrace-0.5.3.orig/sysdeps/linux-gnu/events.c 2009-07-25 17:13:02.000000000 +0200
9.13 ++++ ltrace-0.5.3/sysdeps/linux-gnu/events.c 2010-01-03 14:33:46.000000000 +0100
9.14 +@@ -7,9 +7,8 @@
9.15 + #include <errno.h>
9.16 + #include <signal.h>
9.17 + #include <string.h>
9.18 +-#include <sys/ptrace.h>
9.19 +
9.20 +-#include "common.h"
9.21 ++#include "trace.h"
9.22 +
9.23 + static Event event;
9.24 +
9.25 +diff -ruN ltrace-0.5.3.orig/sysdeps/linux-gnu/trace.c ltrace-0.5.3/sysdeps/linux-gnu/trace.c
9.26 +--- ltrace-0.5.3.orig/sysdeps/linux-gnu/trace.c 2009-07-25 17:13:02.000000000 +0200
9.27 ++++ ltrace-0.5.3/sysdeps/linux-gnu/trace.c 2010-01-03 14:33:38.000000000 +0100
9.28 +@@ -5,10 +5,9 @@
9.29 + #include <unistd.h>
9.30 + #include <sys/types.h>
9.31 + #include <sys/wait.h>
9.32 +-#include "ptrace.h"
9.33 + #include <asm/unistd.h>
9.34 +
9.35 +-#include "common.h"
9.36 ++#include "trace.h"
9.37 +
9.38 + /* If the system headers did not provide the constants, hard-code the normal
9.39 + values. */
9.40 +diff -ruN ltrace-0.5.3.orig/sysdeps/linux-gnu/trace.h ltrace-0.5.3/sysdeps/linux-gnu/trace.h
9.41 +--- ltrace-0.5.3.orig/sysdeps/linux-gnu/trace.h 1970-01-01 01:00:00.000000000 +0100
9.42 ++++ ltrace-0.5.3/sysdeps/linux-gnu/trace.h 2010-01-03 14:33:26.000000000 +0100
9.43 +@@ -0,0 +1,32 @@
9.44 ++/* If the system headers did not provide the constants, hard-code the normal values. */
9.45 ++#ifndef __SYSDEPS_TRACE_H__
9.46 ++#define __SYSDEPS_TRACE_H__
9.47 ++
9.48 ++#include "ptrace.h"
9.49 ++#include "common.h"
9.50 ++
9.51 ++#ifndef PTRACE_EVENT_FORK
9.52 ++#warning PTRACE_EVENT_FORK not found... redefining.
9.53 ++#define PTRACE_OLDSETOPTIONS 21
9.54 ++#define PTRACE_SETOPTIONS 0x4200
9.55 ++#define PTRACE_GETEVENTMSG 0x4201
9.56 ++
9.57 ++/* options set using PTRACE_SETOPTIONS */
9.58 ++#define PTRACE_O_TRACESYSGOOD 0x00000001
9.59 ++#define PTRACE_O_TRACEFORK 0x00000002
9.60 ++#define PTRACE_O_TRACEVFORK 0x00000004
9.61 ++#define PTRACE_O_TRACECLONE 0x00000008
9.62 ++#define PTRACE_O_TRACEEXEC 0x00000010
9.63 ++#define PTRACE_O_TRACEVFORKDONE 0x00000020
9.64 ++#define PTRACE_O_TRACEEXIT 0x00000040
9.65 ++
9.66 ++/* Wait extended result codes for the above trace options. */
9.67 ++#define PTRACE_EVENT_FORK 1
9.68 ++#define PTRACE_EVENT_VFORK 2
9.69 ++#define PTRACE_EVENT_CLONE 3
9.70 ++#define PTRACE_EVENT_EXEC 4
9.71 ++#define PTRACE_EVENT_VFORK_DONE 5
9.72 ++#define PTRACE_EVENT_EXIT 6
9.73 ++
9.74 ++#endif /* PTRACE_EVENT_FORK */
9.75 ++#endif /* __SYSDEPS_TRACE_H__ */
10.1 --- a/scripts/build/debug/400-ltrace.sh Sun Jan 03 18:40:35 2010 +0100
10.2 +++ b/scripts/build/debug/400-ltrace.sh Sun Jan 03 16:46:58 2010 +0100
10.3 @@ -27,11 +27,19 @@
10.4 CT_Pushd "${CT_BUILD_DIR}/build-ltrace"
10.5
10.6 CT_DoLog EXTRA "Configuring ltrace"
10.7 - CT_DoExecLog ALL \
10.8 - ./configure \
10.9 - --build=${CT_BUILD} \
10.10 - --host=${CT_TARGET} \
10.11 - --prefix=/usr
10.12 + # ltrace-0.5.3, and later, don't use GNU Autotools configure script anymore
10.13 + if [ "${CT_LTRACE_0_5_3_or_later}" = "y" ]; then
10.14 + CC=${CT_TARGET}-${CT_CC} \
10.15 + HOST=${CT_ARCH} \
10.16 + CFLAGS="${CT_TARGET_CFLAGS}" \
10.17 + CT_DoExecLog ALL ./configure --prefix=/usr
10.18 + else
10.19 + CT_DoExecLog ALL \
10.20 + ./configure \
10.21 + --build=${CT_BUILD} \
10.22 + --host=${CT_TARGET} \
10.23 + --prefix=/usr
10.24 + fi
10.25
10.26 CT_DoLog EXTRA "Building ltrace"
10.27 CT_DoExecLog ALL make