[PATCH 2/3] Define libgcc soname in make scripts and not in a header

Joseph S. Myers joseph@codesourcery.com
Thu Apr 19 16:04:00 GMT 2012


On Thu, 12 Apr 2012, Siddhesh Poyarekar wrote:

> On Wed, 11 Apr 2012 23:40:08 -0400, Carlos wrote:
> > > I would actually like to revisit the idea of *finding* the soname
> > > from the built system since I can't see how it will really break
> > > anything.
> > 
> > I'm not against automatic detection of libgcc-so-name, but we need to
> > do so in a way that supports the ports, is properly isolated from the
> > native system (you may not be building against it), supports
> > overriding with config.cache, is cross-compile friendly, and works for
> > glibc-ports.
> 
> I would definitely prefer this if there aren't any snags that I haven't
> thought about. Andreas' patch back in 2009 should be sufficient for
> this. It builds a test program that links to libgcc_s and then fishes
> out the soname using objdump on the test binary. That should work
> across ports.

Such detection could only be appropriate at the time the testsuite is run, 
not at configure time, since we'd like to avoid configuring / building 
glibc needing to depend on shared libgcc at all as it does at present.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Libc-alpha mailing list