http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59505
--- Comment #9 from Markus Trippelsdorf <octoploid at yandex dot com> --- (In reply to David Kredba from comment #8) > Thank you Markus. > Could you please tell me if binutils 2.24.51.0.2 are OK for this? Unfortunately not out of the box. I use the attached simple patch for binutils. With this I can symlink to the linker plugin in /usr/x86_64-pc-linux-gnu/binutils-bin/lib/bfd-plugins (my be a different directory on your machine) and ar, nm and ranlib will use the plugin by default. I can also switch between gcc and llvm plugins, e.g.: markus@x4 ~ % plugin_gcc markus@x4 ~ % ll /usr/x86_64-pc-linux-gnu/binutils-bin/lib/bfd-plugins total 12K drwxr-xr-x 2 root root 4.0K Dec 14 12:01 . drwxr-xr-x 3 root root 4.0K Oct 7 2012 .. lrwxrwxrwx 1 root root 65 Dec 14 12:01 liblto_plugin.so.0.0.0 -> /usr/libexec/gcc/x86_64-pc-linux-gnu/4.9.0/liblto_plugin.so.0.0.0 markus@x4 ~ % plugin_clang markus@x4 ~ % ll /usr/x86_64-pc-linux-gnu/binutils-bin/lib/bfd-plugins total 8.0K drwxr-xr-x 2 root root 4.0K Dec 14 12:01 . drwxr-xr-x 3 root root 4.0K Oct 7 2012 .. lrwxrwxrwx 1 root root 26 Dec 14 12:01 LLVMgold.so -> /usr/local/lib/LLVMgold.so markus@x4 ~ % Where plugin_gcc and plugin_clang are simple scripts to change the symlink. > I will try AR=gcc-ar etc in the meantime. This should work.
