This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Questions related to creation of libgcov.so
On Fri, 24 Aug 2018, Martin Liška wrote:
> > 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?
>
> SHLIBGCOV_INSTALL_SOLINK = $(LN_S) $(SHLIBGCOV_SONAME) \
> $(DESTDIR)$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK)
If $(SHLIBGCOV_SONAME) is just the SONAME (not a full path to the
installed file), that's automatically a relative link (within the same
directory). It's only if you're putting the .so symlink for the static
linker in a different directory from the actual shared library for the
dynamic linker that any complications arise (I'm not sure that's something
we ever do at present).
--
Joseph S. Myers
joseph@codesourcery.com