How to build glib, etc. for non-standard location

Yann E. MORIN yann.morin.1998@free.fr
Sun Jul 22 15:39:00 GMT 2012


Han, All,

On Sunday 22 July 2012 01:54:58 Han Sooloo wrote:
> Got a NAS with a fairly old glibc/c++ implementation.  Would like to
> install and run programs that depend on newer versions of these libraries.
> Since the standard libraries are in /lib stored on a DOM (i.e., flash
> memory, can't just override them), I would like to use a non-/lib
> location,

I would suggest that, instead of changing the libs locations, you use a
chroot for your apps that need to use those new libs.

That way, you do not have to do linker tricks. All is as usual, except
that at runtime, you 'just' chroot before running your apps.

IMNSHO, I believe this is the simplest solution, and the way it is
traditionaly done in those cases where you can't replace the original
root file-system of your device.

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



More information about the crossgcc mailing list