https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105688
--- Comment #16 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Artem S. Tashkinov from comment #14) > Created attachment 53022 [details] > lddebug.tar.xz Thanks this confirms that it is working like it should be and something is setting LD_LIBRARY_PATH when it should not be ... It definitely looks like a libtool issue. libtool is almost not maintained either ...