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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jacques Greindl <jgreindl@xxxxxxxxx> writes:

> The older system is an embedded one --> no compiler on it (run on 2mb
> flash mem).
> I build this one a few years ago with an old linux desktop. And I
> don't have it anymore. But I have to make an upgrade for the embedded
> system...

You could recreate the old GNU/Linux system.  Old GNU/Linux distros are
easy to find on the web.


> So I have to :
> 1- find the glibc version of my embedded system
> 2- install this version on my actual system without erasing my actual one (how?)
> 3- compile my sources with gcc and a parameter to specify this version (how?)

Building glibc is nontrivial.  But the basic idea is to build and
install glibc with a specific --prefix option, and use that directory as
a --with-sysroot option when building GNU binutils and gcc.

Ian


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux