This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/32415] libgcc_s not found in library search path with --enable-version-specific-runtime-libs
- From: "dfranke at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jun 2008 14:17:15 -0000
- Subject: [Bug c/32415] libgcc_s not found in library search path with --enable-version-specific-runtime-libs
- References: <bug-32415-14725@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from dfranke at gcc dot gnu dot org 2008-06-30 14:17 -------
In PR35248, Richard wrote:
> libgcc_s goes into slibdir which is set as
>
> AC_ARG_WITH(slibdir,
> [ --with-slibdir=DIR shared libraries in DIR [[LIBDIR]]],
> slibdir="$with_slibdir",
> if test "${enable_version_specific_runtime_libs+set}" = set; then
> slibdir='$(libsubdir)'
> elif test "$host" != "$target"; then
> slibdir='$(build_tooldir)/lib'
> else
> slibdir='$(libdir)'
> fi)
> AC_SUBST(slibdir)
>
> and libsubdir is (should be)
>
> libsubdir = $(libdir)/gcc/$(target_noncanonical)/$(version)
>
> but indeed, the (shared and .so link) libs end up in
> $(libdir)/gcc/$(target_noncanonical)/lib{,64} instead.
In ./gcc/libgcc.mvars, we have
SHLIB_INSTALL = $(mkinstalldirs) $(DESTDIR)$(slibdir)@shlib_slibdir_qual@;
[...]
where $(DESTDIR)$(libdir) seems to be correct for me. However, the last part
(@shlib_slibdir_qual@) is substituted in libgcc/Makefile.in(install-shared)
with $(MULTIOSSUBDIR) which is based on `$(CC) $(CFLAGS)
-print-multi-os-directory)`, here '../lib64'.
Hope this helps and rings a bell with someone ...?!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32415