I have built a fully bootstrapped toolchain/binary/library environment that runs the latest version of glibc (2.19) for the kernel on the servers at work (an old version of CentOS), gcc 7.3.0, and binutils 2.30, following most of the Linux From Scratch book. It’s insulated from the host libraries. Everything I’ve thrown at it works well, even having built Xorg, GTK+2/3, and GUI applications.
I’d love to build atom, but simply passing the argument ‘–install=/home/tools’ is not enough (/home/tools is the location of my independent, bootstrapped environment; including bin, etc, include, etc directories). The problem is, that when it’s installing the dependencies it fails because apm for instance has its search paths hard-coded to look for libraries in /usr or /usr/local. Is there a way around this behavior and have it use the libraries and include files and all dependencies under my own directory of /home/tools?