This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Multiple libstdc++ versions
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: coypu at sdf dot org
- Cc: "libstdc++" <libstdc++ at gcc dot gnu dot org>
- Date: Sat, 1 Jul 2017 19:21:04 +0100
- Subject: Re: Multiple libstdc++ versions
- Authentication-results: sourceware.org; auth=none
- References: <20170701163114.GA13735@SDF.ORG> <CAH6eHdRK4J4eaNCj4bHiwt_=zv-4e601fJ0fRg99XSedXxON-w@mail.gmail.com> <20170701181758.GA14900@SDF.ORG>
On 1 July 2017 at 19:17, <coypu@sdf.org> wrote:
> It is for the dynamic linking case.
> Previously I thought it's determined at link time (especially seeing
> 'ldd' return a full path), but now I see that it's determined as a
> filename and RPATH.
Strictly speaking, it's a SONAME and RPATH.
> so I suppose I need to always include an RPATH for the newer libstdc++.
Yes, that's one option. See
https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dynamic_or_shared.html#manual.intro.using.linkage.dynamic