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

sam at gentoo dot org sourceware-bugzilla@sourceware.org
Fri Mar 13 12:56:15 GMT 2026


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

--- Comment #16 from Sam James <sam at gentoo dot org> ---
(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.

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


More information about the Glibc-bugs mailing list