FirstIndexNext

[help-gsl] configure error: cannot run test program while cross compiling (2008-09-23)

From: Bart De Vos <bart.devos@......>
Subject: configure error: cannot run test program while cross compiling
Date: Tue, 23 Sep 2008 10:19:05 +0200
To: help-gsl@gnu.org
Cc: bug-gsl@gnu.org

Hello,

Since we intend to use the GSL library on three dirrent platforms, cross compiling is what we do. However the configure script stops when cross compiling. My simple question on that: why?

At this moment i patched the configure script (see below) to continue configuring and getting gsl to be cross-compiled. But I assume there was a good reason to stop. And if not, this might be simple solution ...

with kind regards,
Bart.

--- gsl-1.11/configure.orig 2008-09-11 13:05:27.000000000 +0200
+++ gsl-1.11/configure 2008-09-11 13:05:39.000000000 +0200
@@ -12578,7 +12578,8 @@
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
+# { (exit 1); exit 1; };
+ }
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */

--
--------------------------------------------------
Bart De Vos
Development Engineer
mailto:bart.devos@......

EIA Electronics
Vluchtenburgstraat 3
B-2630 Aartselaar (Belgium)
phone : +32(0)3 870 85 29
fax : +32(0)3 877 14 72
website : http://www.eia.be/
--------------------------------------------------
Basically, perfect development is impossible.
Development can be fast, good and cheap. Pick two!
— Larry Wall
--------------------------------------------------


--
--------------------------------------------------
Bart De Vos
Development Engineer
mailto:bart.devos@......

EIA Electronics
Vluchtenburgstraat 3
B-2630 Aartselaar (Belgium)
phone : +32(0)3 870 85 29
fax : +32(0)3 877 14 72
website : http://www.eia.be/
--------------------------------------------------
Basically, perfect development is impossible.
Development can be fast, good and cheap. Pick two!
— Larry Wall
--------------------------------------------------