autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Enforcing cross-compilation


From: Robert Woodworth
Subject: Re: Enforcing cross-compilation
Date: Thu, 13 Jan 2011 11:26:50 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Lightning/1.0b2 Thunderbird/3.1.7

I have a configure.ac with the following just after AC_INIT
It works well.

<snip>

host=mips-elf
host_alias=mips-elf
ac_tool_prefix=mips-elf-
cross_compiling=yes

</snip>

This works fine, and when the AC_PROG_CC executes it looks exclusively for 'mips-elf-gcc' and fails if not found. It also sets 'CC=mips-elf-gcc' in all my Makefiles.

This is for a source tree of embedded firmware code.



Rob.





On 01/13/2011 08:44 AM, David Nečas wrote:
Hello,

is it possible to enforce cross-compilation by some configure arugments
or env vars?

I cross-compile for win32 using the mingw32 cross-compiler toolchain but
I *can* run the created excutables as I have wine installed.  So
configure concludes I am not cross-compiling and this leads to various
problems later.

Of course, I can easily work around it by unregistering the binfmt
interpreter and thus losing the ability to run the MS executables
directly.  But generally, the cross-compilation check does not seem to
be reliable so I would like to be able to ask for cross-compilation
explicitly.

Yeti


_______________________________________________
Autoconf mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/autoconf




reply via email to

[Prev in Thread] Current Thread [Next in Thread]