Bug #1831
0d74894f33cc73df85d4ca97fc9c1748603690d9 breaks cross compilation
0%
Description
configure tries to run test on the buildsystem instead of the target system, which fails horribly for cross compilation.
History
Updated by Adam Sutton almost 11 years ago
- Status changed from New to Rejected
it is assumed that if you're cross-compiling you've set things up properly, like telling the configure script where you're cross compiler is. Otherwise all other tests are also invalid.
Also we don't actually support cross compilation, so this at best would have to go in as a Feature request.
Adam
Updated by Koen Kooi almost 11 years ago
I've set up everything correctly, but pointing to the right crosscompiler will not help with trying to run generated binaries. The work around I made seems to work:
diff --git a/support/configure.inc b/support/configure.inc
index 840c939..17f9b31 100755
--- a/support/configure.inc
+++ b/support/configure.inc@ -265,8 +265,6
@ int main() {
EOF
$CC $CFLAGS $LDFLAGS $TMPDIR/$$.c o $TMPDIR/$$.bin $opt #&> /dev/null [ $RET
RET=$?eq 0 ] && $TMPDIR/$$.bin RET=$?
rm -f $TMPDIR/$$.{c,bin}
return $RET