This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Trouble cross building target libraries
- From: Christer Solskogen <christer dot solskogen at gmail dot com>
- To: paul at mad-scientist dot net
- Cc: Kai Ruottu <kai dot ruottu at wippies dot com>, gcc-help at gcc dot gnu dot org
- Date: Tue, 3 Sep 2013 17:54:01 +0200
- Subject: Re: Trouble cross building target libraries
- Authentication-results: sourceware.org; auth=none
- References: <CAMVU60YawUat7uxRKjuyWAAG0WA4Z8_ezUfcfgTntcZOyyaxXg at mail dot gmail dot com> <5225E491 dot 40609 at wippies dot com> <1378216515 dot 1332 dot 6 dot camel at pdsdesk>
On Tue, Sep 3, 2013 at 3:55 PM, Paul Smith <paul@mad-scientist.net> wrote:
> On Tue, 2013-09-03 at 16:30 +0300, Kai Ruottu wrote:
>> What do you think the guessed '--target=<something>' to be?
>> 1. the same as in the '--build=x86_64-unknown-linux-gnu' ?
>> 2. the same as in the '--host=x86_64-builder-linux-gnu' ?
>
> In autoconf, if --build is not given then it uses config.guess to get a
> triplet for the current system.
>
> If --host is not given, it's set to the value used for --build.
>
> If --target is not given, it's set to the value used for --host.
>
Well, I haven't double checked it yet, but it *might* look like you
need to specify --target as well. Without it the target libraries are
not compiled with the cross compiler. I'm also pretty sure that this
has changed since 4.7. But is it a bug?
--
chs,