I am attempting to compile my own copy of gcc 9.2.0 on CentOS 8 in a non-standard path, ~/tools/system. I have local copies of automake, autoconf, libtool, gmc, mpc and mpfr in there and they all work fine. However, when I compile gcc the build artifacts are not baking in the rpath, and will fail entirely as soon as it tries to switch to it's bootstrap executables. I've included -Wl,-rpath,/home/aosterman/tools/system/lib -Wl,-rpath,/home/aosterman/tools/system/lib64 in LDFLAGS, CFLAGS and CPPFLAGS and exported all of them. I can force the build to succeed by setting LD_LIBRARY_PATH, but the final result only works if I set it again at run time, which I absolutely do not want to do.
For my own sanity, I've actually written up my build process in a makefile to build everything, which can be found on github. The complete build log can be found here.
Does anyone know what I'm missing here? Everything else is working fine, and I've used a similar process to compile several other software sets in the past. How do I force gcc to compile while actually honoring LDFLAGS?
For my own sanity, I've actually written up my build process in a makefile to build everything, which can be found on github. The complete build log can be found here.
Does anyone know what I'm missing here? Everything else is working fine, and I've used a similar process to compile several other software sets in the past. How do I force gcc to compile while actually honoring LDFLAGS?