https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105688
--- Comment #37 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Vincent Lefèvre from comment #36) > An alternative solution: for programs that are known to potentially fail due > to built libraries and LD_LIBRARY_PATH, GCC could define wrappers that clean > up LD_LIBRARY_PATH before executing the real program. That should not be too hard to do as GCC already does that while building for as and sometimes ld, see gcc/exec-tool.in. It is mostly for while building binutils and GCC together (which is supported still).