32-bit versus 64-bit android toolchain?

Yann E. MORIN yann.morin.1998@anciens.enib.fr
Fri May 22 21:06:00 GMT 2009


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



More information about the crossgcc mailing list