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: 32-bit versus 64-bit android toolchain?


Thomas,
All,

On Friday 22 May 2009 19:27:53 Thomas Petazzoni wrote:
> Starting with gcc 4.x, toolchains can support the "sysroot"
> functionnality (this is optional). It allows to change the installation
> location of the toolchain, but if you do change this installation
> location, then you must pass a --sysroot option pointing to the
> directory where the toolchain is installed. So toolchains based on gcc
> 4.x compiled with sysroot support are relocatable, but it requires some
> explicit flag passed by the user.

Passing --sysroot at runtime should not be needed. From the gcc installation
instructions:

-----8<-----
  --with-sysroot=dir
    [...] If the specified directory is a subdirectory of ${exec_prefix},
    then it will be found relative to the GCC binaries if the installation
    tree is moved.
-----8<-----

And from my experiments, it works as advertised, for once! :-]

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| --==< ^_^ >==-- `------------.-------:  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]