This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/68626] Compiling with "-flto -fuse-linker-plugin" gives libtool error
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 01 Dec 2015 05:46:43 +0000
- Subject: [Bug lto/68626] Compiling with "-flto -fuse-linker-plugin" gives libtool error
- Auto-submitted: auto-generated
- References: <bug-68626-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68626
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to john.frankish from comment #4)
> $echo 'int f(void) { return 0; }' > test.c
> $ cc test.c -c -flto -fuse-linker-plugin
> $ nm test.o
> 0000000000000001 C __gnu_lto_slim
> 0000000000000001 C __gnu_lto_v1
Which means it is not using the plugin at all. How did you configure binutils?
Did you configure binutils with --enable-plugins ? If you did not, then bfd
will not use the plugins, though ld will.