mairix fails to cross build from source, because it builds for the build
architecture. The configure invocation lacks any indication of what the
host architecture is. Usually one would pass --host=..., but this
configure is hand-written and does not accept that flag. Instead, it
expects the CC variable to be suitably exported. Once doing so, it
actually cross builds but the fails running the dfasyn tool. It is
purely used during build and should be compiled with the build
architecture compiler. Hence I propose to build it separately passing a
different compiler. With both of these changes, mairix cross builds
successfully. Please consider applying the attached patch.
Helmut