[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [libunwind] forwarded message from Andreas Schwab
From: |
David Mosberger |
Subject: |
Re: [libunwind] forwarded message from Andreas Schwab |
Date: |
Fri, 17 Dec 2004 10:08:19 -0800 |
Andreas,
>>>>> On Wed, 15 Dec 2004 21:01:55 +0100, Andreas Schwab <address@hidden> said:
Andreas> David Mosberger <address@hidden> writes:
>> Please let's try to be precise. When I cross-build
Andreas> Here is a patch to fix the build vs. host misunderstanding.
Would you mind resending the patch with a
Signed-off-by: Andreas Schwab <address@hidden>
header so I can check it in? For your convenience, I attached the
patch (you can send it to me in private).
Thanks,
--david
--- configure.in.~1~ 2004-12-13 00:43:57.000000000 +0100
+++ configure.in 2004-12-15 20:52:55.427665666 +0100
@@ -65,10 +65,10 @@ get_arch() {
esac
}
-build_arch=`get_arch $build_cpu`
+host_arch=`get_arch $host_cpu`
target_arch=`get_arch $target_cpu`
-AM_CONDITIONAL(REMOTE_ONLY, test x$target_arch != x$build_arch)
+AM_CONDITIONAL(REMOTE_ONLY, test x$target_arch != x$host_arch)
AM_CONDITIONAL(ARCH_IA64, test x$target_arch = xia64)
AM_CONDITIONAL(ARCH_HPPA, test x$target_arch = xhppa)
AM_CONDITIONAL(ARCH_X86, test x$target_arch = xx86)
@@ -76,7 +76,7 @@ AM_CONDITIONAL(ARCH_X86_64, test x$targe
AM_CONDITIONAL(OS_LINUX, expr x$target_os : xlinux >/dev/null)
AM_CONDITIONAL(OS_HPUX, expr x$target_os : xhpux >/dev/null)
-if test x$target_arch != x$build_arch; then
+if test x$target_arch != x$host_arch; then
CPPFLAGS="${CPPFLAGS} -DUNW_REMOTE_ONLY"
fi
AC_CONFIG_LINKS(include/libunwind.h:include/libunwind-$target_arch.h
@@ -116,7 +116,7 @@ PKG_MINOR=pkg_minor
PKG_EXTRA=pkg_extra
PKG_MAINTAINER=pkg_maintainer
-AC_SUBST(build_arch)
+AC_SUBST(host_arch)
AC_SUBST(target_os)
AC_SUBST(arch)
AC_SUBST(ARCH)
--- tests/check-namespace.sh.in.~1~ 2004-12-13 00:43:58.000000000 +0100
+++ tests/check-namespace.sh.in 2004-12-15 20:53:38.794588825 +0100
@@ -5,7 +5,7 @@ if [ "$1" = "-v" ]; then
shift
fi
address@hidden@
address@hidden@
address@hidden@
address@hidden@
num_errors=0
To fix the cross-build issue the generator programs need to be converted
into something like the offsets.h generators in the kernel.
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."