Skip to contentSkip to conversation

build an "autotooled" that is out of tree

Buildroot David Bonnin 2 participants 3 messages Sep 13, 2012 – Oct 4, 2012

lore
Share & tools
lore
#0 lore raw

Hello,

We have a projet that out of the buildroot tree.
This projet is build with autotools.

When we run .configure script of our projet, we need to set a lot of env variable and pas os it to ./configure.

Is there a way to do that?
Or what is the good way to manage a projet out of tree?

#pwd
/home/toto/src/myPrj
#source ~/buildroot/output/env
#./configure
#make install

David Bonnin

#1 lore raw
Quoted 8 lines · David Bonnin

Hello,

We have a projet that out of the buildroot tree.
This projet is build with autotools.

When we run .configure script of our projet, we need to set a lot of env variable and pas os it to ./configure.

Put the buildroot compiler path (<buildroot path>/output/host/usr/bin/) in your PATH, and launch ./configure --host=<compiler prefix>. The compiler there is a wrapper to the real compiler, with additional default settings.

This should take care of most problems.

Signature · 1 line
Romain Izard
author
#2 lore raw

Hello, thanks, it works.

With the project autooled, i do:
autoreconf --install

Put the buildroot compiler path (<buildroot path>/output/host/usr/bin/)

./configure --host=<compiler prefix>

Do i have have to change PATH before autoreconf ?

Thanks.
David.

Le 14/09/2012 10:50, Romain Izard a ?crit :

Quoted 15 lines · David Bonnin
Quoted 8 lines

Hello,

We have a projet that out of the buildroot tree.
This projet is build with autotools.

When we run .configure script of our projet, we need to set a lot of env variable and pas os it to ./configure.

Put the buildroot compiler path (<buildroot path>/output/host/usr/bin/) in your PATH, and launch ./configure --host=<compiler prefix>. The compiler there is a wrapper to the real compiler, with additional default settings.

This should take care of most problems.