https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89166

            Bug ID: 89166
           Summary: -static prevents liblto_plugin to be created
           Product: gcc
           Version: 8.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ilg at livius dot net
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---

Passing -static to the GCC configure/make prevents the LTO plugin to be
properly created; the build is successful, but, for example for the Windows
build, the file liblto_plugin-0.dll is not created, instead a warning is
issued.

For GCC executables this is not a problem, but some binutils executables also
need this plugin (like ar).


I think that the configure/make code for the LTO plugin should ignore the
-static option (even when passed via LDFLAGS) and always build the dll/so.

Reply via email to