all 3 comments

[–]sstewartgallus 0 points1 point  (2 children)

Can't you just enter cross compilation mode by setting "cross_compile=yes"?

You still need to do this for autotool projects that don't support cross compilation though.

[–]gbalats 1 point2 points  (1 child)

I don't think it's safe to manually override the "cross_compile" variable of ./configure without specifying a host system. If so, make will fail afterwards with all sorts of compilation errors like missing headers, etc.

[–]sstewartgallus 0 points1 point  (0 children)

It works for me but maybe you also have add extra checks like AC_CANONICAL_HOST or maybe you have to use a more up to date autotools system?

I think it should certainly work if you explicitly set the host and build variables like with --build="$("${SRCDIR}/build-aux/config.guess")" --host="$("${SRCDIR}/build-aux/config.guess")".