This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: CT_TARGET


Samson, All,

On Saturday 09 October 2010 08:54:47 Samson Luk wrote:
> Sorry for the confusion... I mean do  I need $CT_TARGET in my shell
> set through out the 'ct-ng build' process, as you know in my situation
> this cannot be done within one session / day. What if I forgot to
> setup the  $CT_TARGET environment variable in the next 'ct-ng build'
> session?  Would that create troubles such as ct-ng will install stuff
> to the wrong path, etc.

Oh I see. CT_TARGET (the tuple) is set internally by crosstool-NG during
the build. This means that:
- you do not have to provide it to crosstool-NG
- once crosstool-NG finishes, the variable is no longer set

So you can not use the CT_TARGET variable.

For my part, all my toolchains are installed in a specific place, so I put
this in my .bashrc:
  for d in /opt/x-tools/*/bin; do
    [ -d "${d}" ] && PATH="${PATH}:${d}"
  done
  export PATH

This way I do not have to care what toolchains are installed, and what the
tuples are. They will always be in the PATH.

Of course, that rules out having two toolchains with the same tuple, but in
this case you are just asking for trouble! ;-)

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'



--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]