[crosstool-NG/PATCH] Building ltrace when host != target
KRONSTORFER Horst
Horst.KRONSTORFER@frequentis.com
Thu Mar 12 14:40:00 GMT 2009
hi!
the following patch against svn_trunk@1425 fixes a problem when
cross-compiling
ltrace (ltrace_0.5.1.orig.):
when ARCH is not defined on the make command line for
sysdeps/linux-gnu/Makefile,
ARCH is determined via 'uname -m', which results in the selection of the
wrong
architecture-dependent subdir for cross-compilation in most cases (host !=
target.)
Index: scripts/build/debug/400-ltrace.sh
===================================================================
--- scripts/build/debug/400-ltrace.sh (revision 1425)
+++ scripts/build/debug/400-ltrace.sh (working copy)
@@ -34,10 +34,10 @@
--prefix=/usr
CT_DoLog EXTRA "Building ltrace"
- CT_DoExecLog ALL make
+ CT_DoExecLog ALL make ARCH="${CT_ARCH}"
CT_DoLog EXTRA "Installing ltrace"
- CT_DoExecLog ALL make DESTDIR="${CT_DEBUGROOT_DIR}" install
+ CT_DoExecLog ALL make ARCH="${CT_ARCH}" DESTDIR="${CT_DEBUGROOT_DIR}"
install
CT_Popd
CT_EndStep
br
-h
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list