Project

General

Profile

Bug #1831

0d74894f33cc73df85d4ca97fc9c1748603690d9 breaks cross compilation

Added by Koen Kooi almost 11 years ago. Updated almost 11 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
General
Target version:
-
Start date:
2013-11-18
Due date:
% Done:

0%

Estimated time:
Found in version:
git
Affected Versions:

Description

configure tries to run test on the buildsystem instead of the target system, which fails horribly for cross compilation.

History

#1

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

#2

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

Also available in: Atom PDF