On 02/21/2015 12:18 PM, Zac Medico wrote:
> On 02/21/2015 08:14 AM, Anthony G. Basile wrote:
>> Finally, a limitation of the above should be noted.  Since the
>> CFLAGS/CXXFLAGS cached are only those supplied by the user, it does not
>> cover situations where the package build system or ebuild supply their
>> own -std= flag.  Since this information cannot and should not be cached
>> by the package manager, utilities used to find any mismatches in C++ ABI
>> must provide for this intelligence.
> 
> I wonder if it's feasible to force the -rpath option when using the
> -std= flag, and force the real/canonical libstc++.so path into the
> rpath. There's some mention of -rpath here:
> 
> http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html#AEN95
> 
> Have the -rpath information in the binaries should make it easy to
> correctly resolve the library dependencies.

If we put the real/canonical libstdc++.so path in the DT_NEEDED section,
then it will automatically work with existing soname dependency support.
-- 
Thanks,
Zac

Reply via email to