https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115743
--- Comment #12 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Ralf Habacker from comment #11) > BTW: I found an additional note that such a move is also required for other > targets > > from > https://build.opensuse.org/projects/devel:gcc/packages/gcc11/files/gcc11. > spec?expand=1 line 2553 > > > # And we want to move the shlib gdb pretty printers to a more sane > > # place so ldconfig does not complain That seems to be just avoiding a warning that ldconfig gives about the .py file, not because it doesn't work in that location. And I think that will only work for the system compiler, not for self-built compilers installed under e.g. $HOME or /opt