I'm using multiple Linux servers that are running on different versions of glibc and other essential libraries. Since I do not have root access, I have to compile the packages from scratch on each machine. So I want to pack a local library environment from scratch (containing glibc) in ~/.local (i.e. --prefix=/home/<xxx>/.local) and completely discard system libraries.
Will this solution approachable? (i.e. I can pack the ~/.local and ~/.bashrc, move to a new machine, unpack them, and use them directly.)
Recently I'm reading Linux from Scratch, but actually this is not a cross-compiling task so procedure in the book may not apply. My current sequence is glibc -> binutils -> libstdc++ -> gcc. Is the order correct? What's the correct order of building libraries?