This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Questions related to creation of libgcov.so


Hi,

On Fri, 24 Aug 2018, Martin Liška wrote:

> >> Where 
> >> /home/marxin/bin/gcc/lib64/gcc/x86_64-pc-linux-gnu/9.0.0/libgcov.so 
> >> points to /home/marxin/bin/gcc/lib64/libgcov.so.1 ?
> > 
> > Any symlinks need to be *relative*, not absolute, so the install tree 
> > is relocatable.  There's unlibsubdir / libsubdir_to_prefix in 
> > gcc/Makefile.in but I'm not sure if that's available in the libgcc/ 
> > directory at present.
> 
> Well I'm not much sure how to do that. Is it about fixing what 
> SHLIBGCOV_INSTALL_SOLINK does?

Yep.  Though I'll say in our GCC packages we explicitely (i.e. outside the 
normal make install) rewrite all shared library symlinks to be relative 
and be placed in the version-dependend subdir.  So it might be that many 
of the other shared libraries that GCC can install are also wrong (either 
not in the version-dep subdir or not relative).  Would be nice to fix all 
of them, but that's probably a larger effort.

I'd say do with libgcov whatever is currently done with libgcc_s.  If the 
latter needs fixing to be relative or in the version-dep subdir (if 
enabled) that would be a separate fix (and yes, it would be to the 
SHLIB*_INSTALL_SOLINK macro).


Ciao,
Michael.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]