[Bug other/56249] New: gcc-nm doesn't work if gcc configured with --disable-lto
benno at benno dot id.au
gcc-bugzilla@gcc.gnu.org
Fri Feb 8 01:32:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56249
Bug #: 56249
Summary: gcc-nm doesn't work if gcc configured with
--disable-lto
Classification: Unclassified
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: other
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: benno@benno.id.au
Created attachment 29393
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29393
Only install LTO related binaries if LTO is enabled.
If you try to run gcc-nm without LTO enabled it provides an error:
Cannot find plugin <..>/liblto_plugin.so
Now, it is reasonable to say "if you didn't configure LTO then why are you
using gcc-nm". My counter would be that I don't think it is necessary for GCC
to build gcc-nm (et. al.) unless LTO is enabled since the binaries can't
possibly work correctly.
I'd propose that these binaries are not built and installed unless LTO is
enabled. The attached patch does this.
Cheers,
Benno
More information about the Gcc-bugs
mailing list