This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


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: Fwd: Compiling pgm for an older linux version - cross compiler


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...


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