Cross compiling upstart 0.6.3

Arno Schuring aelschuring at hotmail.com
Mon Aug 24 23:37:28 BST 2009


Scott James Remnant wrote:
[...]
> Actually you mean you need nih-dbus-tool compiled for the build
> architecture, not the host architecture (to use autoconf parlance).
> 
> I've no idea how to do this, but would gladly accept patches - I imagine
> that it must be possible with Automake.

Yes, but FAFAIK there is no out-of-the-box autoconf support for it. Most
 packages I see use a construct like this (which I think is kludgy):

if test x"$cross_compiling" = xyes; then
	AC_CHECK_PROGS(CC_FOR_BUILD, gcc cc)
else
	CC_FOR_BUILD="$CC"
fi

and use CC_FOR_BUILD instead of CC for the commands. Of course, this
will not work if nih-dbus-tool would generate different code on the
build and host system; in that case the tool would have to be made
target-aware.


Regards,
Arno



More information about the upstart-devel mailing list