Fwd: Compiling pgm for an older linux version - cross compiler

Kai Ruottu kai.ruottu@wippies.com
Thu Jan 27 11:47:00 GMT 2011


27.1.2011 13:17, Kai Ruottu kirjoitti:

> Getting the original '/lib' and '/usr/lib' stuff being seen in a single
> 'lib' maybe needs some advice, who knows... Anyhow, I unpacked all the
> Debian 3.0r5 stuff into its own $sysroot :
>
> /opt/host-Debian3.0r5_i386/lib
> /opt/host-Debian3.0r5_i386/usr/include
> /opt/host-Debian3.0r5_i386/usr/lib
> etc
>
> and then made the necessary symlinks so that the 2nd and 3rd '/usr'
> directory were seen in the searched '/usr/i386-linux'.

Some people prefer a "chroot jail", using 'chroot' for the alien
stuff place, here '/opt/host-Debian3.0r5_i386', after that the
used tools will use the changed root place... The current MeeGo
project suggested this for running the 'i586-meego-linux' distro
packages on Ubuntus, Fedoras and SuSEs...

With crosscompilers the symlinking approach became familiar
before people invented the '--with-sysroot='. Somehow the two
Linux 'lib' dirs had to be seen in the one '$prefix/$target/lib'.
Putting the target stuff somewhere in its native scheme and then
symlinking things from it where required, wasn't that hard to
invent...



More information about the Gcc-help mailing list