gcc47: Fix plugin mechanism
authorJohn Marino <draco@marino.st>
Sat, 2 Feb 2013 15:29:40 +0000 (16:29 +0100)
committerJohn Marino <draco@marino.st>
Sat, 2 Feb 2013 16:04:21 +0000 (17:04 +0100)
commitbe6440e3915e8a6db41daf31a87459bf29621b1b
tree8e26d4cdedd724a180ad044e8878752bbbf6bb09
parent4c9906cbbdd8f6b74b9cbd2c163f84cc14d4f49c
gcc47: Fix plugin mechanism

There were two problems with gcc 4.7 LTO plugin:
1) It needed a number of object files from libiberty.
   Unfortunately the previous object files couldn't be used as they need
   to be built with -fPIC and libiberty is only an internal (non-pic) lib.
2) The plugin header directory was missing completely, as seen with
   gcc -print-file-name=plugin only returning "plugin".
etc/mtree/BSD.usr.dist
gnu/usr.bin/cc47/liblto_plugin/Makefile
gnu/usr.bin/cc47/liblto_plugin/Makefile.headers [new file with mode: 0644]