This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/61967] regression: cannot link with -flto
- 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: Thu, 31 Jul 2014 00:26:23 +0000
- Subject: [Bug lto/61967] regression: cannot link with -flto
- Auto-submitted: auto-generated
- References: <bug-61967-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61967
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to ÐÐÐÑÐ ÐÐÐÐÑÐÐÐ from comment #5)
> Using gcc-ar instead of ar does not help:
>
> $grep AR\ = Makefile
> AR = gcc-ar
> ...
> ranlib libgnu.a
You need to use gcc-ranlib too otherwise the symbol table is also messed up.