------- 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