[Bug build/33985] ld: cannot find -lgcc_s: No such file or directory

vortexilation at gmail dot com sourceware-bugzilla@sourceware.org
Fri Mar 13 13:51:22 GMT 2026


https://sourceware.org/bugzilla/show_bug.cgi?id=33985

--- Comment #18 from Aditya <vortexilation at gmail dot com> ---
(In reply to Adhemerval Zanella from comment #17)
> (In reply to Sam James from comment #16)
> > (In reply to Adhemerval Zanella from comment #15)
> > > We need this straightforward fix:
> > > 
> > > diff --git a/Makeconfig b/Makeconfig
> > > index ea509dd3bc..22dc7532f0 100644
> > > --- a/Makeconfig
> > > +++ b/Makeconfig
> > > @@ -711,7 +711,9 @@ link-libc-static-tests = -Wl,--start-group
> > > $(common-objpfx)libc.a $(static-gnuli
> > >  ifndef gnulib
> > >  ifneq ($(have-cc-with-libunwind),yes)
> > >    libunwind =
> > > -  libgcc_s  = -lgcc_s
> > > +  ifeq ($(have-libgcc_s),yes))
> > > +    libgcc_s  = -lgcc_s
> > > +  endif
> > >  else
> > >    libunwind = -lunwind $(libgcc-name)
> > >    libgcc_s = $(libunwind)
> > 
> > LGTM.
> 
> It should be fixed by b4c110022ce44406d5c8d75a96d68d2949006050, I will just
> wait Aditya to certify that it does solve the issue.

Thanks!, fixes working wonderfully :-), great work.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list