currently the install-plugin target creates directories in $(plugin_includedir). this is broken wrt DESTDIR and causes a sandbox violation for us (we install into a sandboxed DESTDIR before merging with the live filesystem). the attached patch was sent to gcc-patches but got no response, so i'm filing a PR.
I don't have a copyright assignment, but I'm thinking this counts as obvious. https://bugs.gentoo.org/270558 -- Summary: mkinstalldirs in install-plugin target missing DESTDIR Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dirtyepic at gentoo dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40286