https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79046
Bug ID: 79046 Summary: g++ -print-file-name=plugin uses full version number in path Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: davejohansen at gmail dot com Target Milestone: --- Created attachment 40493 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40493&action=edit gcc patch for version from OpenSUSE g++ -print-file-name=plugin uses the full version number in the path when just the major version number is all that's required for compatibility. This means that plugins have to require the specific version of gcc and have to be rebuild after every update to gcc. For what it's worth, gcc on Ubuntu and OpenSUSE have already made this change and I've attached the patch from OpenSUSE that I believe does the change.