Do you have a question? Post it now! No Registration Necessary

Re: cross compile with ./configure

did you try ./configure --help ?
f there was a CROSS_COMPILE option, it would be preceded with --, for example:
--host=HOST cross-compile to build programs to run on HOST [BUILD]
Typically you can use the following environmental variables
CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
nonstandard directory <lib dir>
LIBS libraries to pass to the linker, e.g. -l<library>
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
you have headers in a nonstandard directory <include dir>
CPP C preprocessor
CXX C++ compiler command
CXXFLAGS C++ compiler flags
CXXCPP C++ preprocessor
--host=HOST cross-compile to build programs to run on HOST [BUILD]

Re: cross compile with ./configure

$./configure CC=arm-unknown-linux-gnu-gcc
configure: warning: CC=arm-unknown-linux-gnu-gcc: invalid host type
$ CROSS_COMPILE=arm-unknown-linux-gnu-
$ ./configure --host=i686-linux --target=arm-linux
(script runs but make terminates with error)
$ CC=arm-unknown-linux-gnu-
$ ./configure
...
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
...
So, each of these tries resulted in non working settings. My cross
toolchain is installed and in my PATH.

Re: cross compile with ./configure

That setting of a variable won't be seen by teh configure script.
Either export it as an environmental variable to be exported to
spawned processes, or include it in the ./configure line thus:
$ CROSS_COMPILE=arm-unknown-linux-gnu- ./configure --host=i686-linux
--target=arm-linux

Ditto. Look up 'export' in your bash manpage.
Phil
--
Marijuana is indeed a dangerous drug.
It causes governments to wage war against their own people.
Marijuana is indeed a dangerous drug.
It causes governments to wage war against their own people.
We've slightly trimmed the long signature. Click to see the full one.
Site Timeline
- » Decisive battle of World War III quiz
- — Next thread in » Embedded Linux
-
- » Questions about catchsegv output
- — Previous thread in » Embedded Linux
-
- » Crosscompiling for ARM: reloc type R_ARM_ABS32 is not supported for PIC - ...
- — Newest thread in » Embedded Linux
-
- » White House In Danger Of Imminent Collapse, First Family Evicted
- — The site's Newest Thread. Posted in » Electronics Design
-
- » Using Bats To Burn Down the House
- — The site's Last Updated Thread. Posted in » Electronics Design
-