Perhaps I am confused. And I don't have a cross-compile build anywhere handy.
I thought that the cross-compile setup built and linked a test executable and scanned for known filenames. It does not try and run the generated file. This should work on a cross-compile build just the way it is. H