Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Gentoo Embedded (http://www.linux-archive.org/gentoo-embedded/)
-   -   How to use EXTRA_ECONF with crossdev (http://www.linux-archive.org/gentoo-embedded/610162-how-use-extra_econf-crossdev.html)

Ren Berber 12-14-2011 04:22 PM

How to use EXTRA_ECONF with crossdev
 
Hi,

I know this works:

EXTRA_ECONF="--enable-targets=x86_64-w64-mingw32,i686-w64-mingw32"
crossdev -t x86_64-w64-mingw32 ...

But is there a way to use it for a specific tool? I'd like to use it
only for binutils.

BTW the mingw64-runtime available is too old (i.e. version 1.0 snapshot,
when current is version 3.0b from svn, 2.something from releases). I
created my local ebuild for this.

Also the crossdev ebuild available has the "cxx nocxx" bug, I had to
unmask the 20111118 ebuild.
--
Ren Berber

Joakim Tjernlund 12-14-2011 04:39 PM

How to use EXTRA_ECONF with crossdev
 
Ren Berber <r.berber@computer.org> wrote on 2011/12/14 18:22:46:
>
> Hi,
>
> I know this works:
>
> EXTRA_ECONF="--enable-targets=x86_64-w64-mingw32,i686-w64-mingw32"
> crossdev -t x86_64-w64-mingw32 ...
>
> But is there a way to use it for a specific tool? I'd like to use it
> only for binutils.

crossdev --help
....
--[bgkl]env env Specify env settings for binutils/gcc/kernel/libc

So perhaps crossdev -benv EXTRA_ECONF="--enable-targets=x86_64-w64-mingw32,i686-w64-mingw32" ...

>
> BTW the mingw64-runtime available is too old (i.e. version 1.0 snapshot,
> when current is version 3.0b from svn, 2.something from releases). I
> created my local ebuild for this.
>
> Also the crossdev ebuild available has the "cxx nocxx" bug, I had to
> unmask the 20111118 ebuild.

Yeah, time to unmask it I think

Ren Berber 12-14-2011 04:54 PM

How to use EXTRA_ECONF with crossdev
 
On 12/14/2011 11:39 AM, Joakim Tjernlund wrote:

> So perhaps crossdev -benv EXTRA_ECONF="--enable-targets=x86_64-w64-mingw32,i686-w64-mingw32" ...

Environment vars is not the same as adding parameters to configure, but
I haven't tested this option, maybe I'm wrong.

Thanks for your reply.
--
Ren Berber

Joakim Tjernlund 12-14-2011 05:18 PM

How to use EXTRA_ECONF with crossdev
 
Ren Berber <r.berber@computer.org> wrote on 2011/12/14 18:54:55:
>
> On 12/14/2011 11:39 AM, Joakim Tjernlund wrote:
>
> > So perhaps crossdev -benv EXTRA_ECONF="--enable-targets=x86_64-w64-mingw32,i686-w64-mingw32" ...
>
> Environment vars is not the same as adding parameters to configure, but
> I haven't tested this option, maybe I'm wrong.

Sure it is, it is the only way to pass configure params I know.
I have used --genv EXTRA_ECONF='"--disable-secureplt --with-cpu=e300c2 --without-long-double-128 --with-dwarf2 --without-fp --with-fp=soft"'
to pass configure options to gcc only

Jocke

Ren Berber 12-14-2011 05:23 PM

How to use EXTRA_ECONF with crossdev
 
On 12/14/2011 12:18 PM, Joakim Tjernlund wrote:

> Ren Berber <r.berber@computer.org> wrote on 2011/12/14 18:54:55:
>>
>> On 12/14/2011 11:39 AM, Joakim Tjernlund wrote:
>>
>>> So perhaps crossdev -benv EXTRA_ECONF="--enable-targets=x86_64-w64-mingw32,i686-w64-mingw32" ...
>>
>> Environment vars is not the same as adding parameters to configure, but
>> I haven't tested this option, maybe I'm wrong.
>
> Sure it is, it is the only way to pass configure params I know.
> I have used --genv EXTRA_ECONF='"--disable-secureplt --with-cpu=e300c2 --without-long-double-128 --with-dwarf2 --without-fp --with-fp=soft"'
> to pass configure options to gcc only

You are right!

Thanks.
--
Ren Berber

Peter Volkov 12-17-2011 02:10 AM

How to use EXTRA_ECONF with crossdev
 
В Срд, 14/12/2011 в 11:22 -0600, René Berber пишет:
> EXTRA_ECONF="--enable-targets=x86_64-w64-mingw32,i686-w64-mingw32"
> crossdev -t x86_64-w64-mingw32 ...
>
> But is there a way to use it for a specific tool? I'd like to use it
> only for binutils.

Hi. Currently I have no idea how to make this work with crossdev, but
take a look at portage manual page (man portage) on package.env file
description.

--
Peter.


All times are GMT. The time now is 11:27 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.