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
Created attachment 17930 [details] gcc45-plugin-destdir.patch
Confirmed.
updated patch: http://gcc.gnu.org/ml/gcc-patches/2009-06/msg01724.html
fixed in rev 148806.
Confirmed, thanks.