Gentoo Archives: gentoo-embedded

From: Christopher Friedt <chrisfriedt@×××××.com>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] autotools: stage1 cross C compiler cannot create executables
Date: Mon, 22 Oct 2012 03:03:57
Message-Id: CAF4BF-SGYCif+MKJSJh2C-PDpsrc5qenw3i3rPh2_d65AwM9UQ@mail.gmail.com
In Reply to: Re: [gentoo-embedded] autotools: stage1 cross C compiler cannot create executables by Mike Frysinger
1 awesome - thanks.
2
3 I'll give this a shot tomorrow.
4
5 On Sat, Oct 20, 2012 at 1:01 PM, Mike Frysinger <vapier@g.o> wrote:
6 > On Thursday 18 October 2012 18:56:20 Christopher Friedt wrote:
7 >> The only problem with autotools and using a stage1 compiler, is that
8 >> the macro AC_PROG_CC in configure.ac always dies because the compiler
9 >> tries to link main to a fully-fledged executable can't find the crt
10 >> files yet.
11 >>
12 >> Is there some kind of auto-magical autoconf incantation that only
13 >> checks to see if the compiler can simply compile (and not necessarily
14 >> link)?
15 >
16 > glibc puts into its aclocal.m4:
17 > dnl These modifications are to allow for an empty cross compiler tree.
18 > define([_AC_COMPILER_EXEEXT], [EXEEXT=
19 > ])
20 > -mike