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

--- Comment #3 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Possible fix:
diff --git a/gcc/collect2.c b/gcc/collect2.c
index c54e6fb..7c067ff 100644
--- a/gcc/collect2.c
+++ b/gcc/collect2.c
@@ -1311,6 +1311,12 @@ main (int argc, char **argv)
                  ld1--;
                  ld2--;
                }
+             else if (strncmp (arg, "-fno-lto", 8) == 0)
+               {
+                 /* Do not pass -fno-lto to the linker. */
+                 ld1--;
+                 ld2--;
+               }
 #ifdef TARGET_AIX_VERSION
              else
                {

Reply via email to