On Thu, Dec 17, 2009 at 10:00 AM, Douglas Gemignani <doug...@gemignani.org> wrote: > Hello, > > I would like to know if it is possible to link binaries against old > versions of glibc. What's the best way to do that? > If I specify -L to point to my old glibc will be enough? I don't want > to "install" those old libraries on my machine, so I just compiled the > old glibc with my current stable gcc and then used the created library > to link to my binary, but this dosn't work very well. >
It depends on if you want to use a special gcc or not. You can build a new gcc with sysroot, which points to your old glibc. If you want to use the existing gcc, you need a special command line to link against the old glibc. -- H.J.