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: unassig...@gcc.gnu.org

        ReportedBy: be...@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

Reply via email to