https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84153
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Use CFLAGS, BOOT_CFLAGS and STAGE1_CFLAGS (and CXXFLAGS) if you don't want to set LD_LIBRARY_PATH or have ld.so find shared libraries in those locations. Again this is not a GCC issue rather you having a custom requirement and you are not setting the correct env variables.