I work on CentOS 6 machines, which has a very old version of GCC / GlibC. I want to create all glibc, binutils, gcc toolchain with the latest or at least very recent versions, to use C ++ 11 support in the latest gcc and ld.gold in the latest binutils and, possibly, improvements in recent glibc.
I want to put the entire toolchain in a separate directory and not affect any existing system files. I also want to build gcc with -sys-root, so when using gcc I do not need to specify -I / some / directory / include and -L / some / directory / lib or any other parameters. Also, the generated executable automatically uses the new ld-linux-xxxxx program loader, which will automatically find the new libc.so.
Does anyone know if there is some kind of tutorial on this task?
source
share