[lttng-dev] [PATCH lttng-tools] Fix cross-compile

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Wed Nov 7 15:28:18 EST 2012


* David Goulet (dgoulet at efficios.com) wrote:
> Merged.
> 
> Thanks!

Following up our IRC discussion, this patch should be reverted. --host
is appropriate for projects, --target should be used when building
cross-compilers.

Thanks,

Mathieu

> 
> Mathieu Desnoyers:
> > 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 <mathieu.desnoyers at efficios.com>
> > ---
> > diff --git a/configure.ac b/configure.ac
> > index a3120fc..49d324e 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
> > 
> > 

-- 
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com



More information about the lttng-dev mailing list