[PATCH v2] Build programs in $(others-noinstall) like if libgcc_s is available
H.J. Lu
hjl.tools@gmail.com
Sat Nov 1 00:29:29 GMT 2025
On Sat, Nov 1, 2025 at 5:24 AM Joseph Myers <josmyers@redhat.com> wrote:
>
> On Fri, 31 Oct 2025, H.J. Lu wrote:
>
> > On Fri, Oct 31, 2025 at 1:00 AM Andreas Schwab <schwab@suse.de> wrote:
> > >
> > > On Sep 15 2025, H.J. Lu wrote:
> > >
> > > > Programs in $(others-noinstall) are internal to glibc build and they
> > > > aren't installed. They should be treated like programs in $(others),
> > > > but linked like tests so that --enable-hardcoded-path-in-tests also
> > > > applies to them.
> > >
> > > This is breaking cross builds, they are now requiring libgcc_s to link
> > > the other-install programs.
> >
> > Don't build programs in $(others-noinstall) like tests when
> > cross-compiling. Otherwise, "build-many-glibcs.py compilers" will
> > fail to build the initial glibc with the initial limited gcc due to
> > the missing libgcc_s.
>
> It's a bad idea to build things differently based on whether cross
> compiling; cross compiling and native compiling should produce the same
> binaries, both installed and uninstalled, to the extent that the compilers
> used have the same features available (and the installed binaries should
> be identical even when built with an initial bootstrap cross compiler).
>
> We do have a configure test "whether $CC can link against -lgcc_s" which
> could be used if needed for non-installed binaries rather than a test on
> cross compiling (note the comment that this must not be used for installed
> binaries).
Build programs in $(others-noinstall) like tests only if libgcc_s is
available. Otherwise, "build-many-glibcs.py compilers" will fail to
build the initial glibc with the initial limited gcc due to the missing
libgcc_s.
OK for master?
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: v2-0001-Build-programs-in-others-noinstall-like-if-libgcc.patch
Type: text/x-patch
Size: 1567 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20251101/93d9e246/attachment.bin>
More information about the Libc-alpha
mailing list