From: Mathieu Desnoyers Date: Wed, 7 Nov 2012 20:13:21 +0000 (-0500) Subject: Fix cross-compile X-Git-Tag: v2.1.0-rc7~12 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=5692e22beeb7119d68055d6450b924972b5f20d0;p=lttng-tools.git Fix cross-compile configure.ac should use --target, not --host to get the target info we want to compile for. --host is for the host that does the build. Signed-off-by: Mathieu Desnoyers Signed-off-by: David Goulet --- diff --git a/configure.ac b/configure.ac index a3120fc04..49d324ecd 100644 --- a/configure.ac +++ b/configure.ac @@ -313,7 +313,7 @@ AS_ECHO("$version_description") AS_ECHO() # Target architecture we're building for -target_arch=$host_cpu +target_arch=$target_cpu [ for f in $CFLAGS; do if test $f = "-m32"; then