This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/32415] libgcc_s not found in library search path with --enable-version-specific-runtime-libs
- From: "harald at gigawatt dot nl" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 22 Aug 2017 06:19:37 +0000
- Subject: [Bug other/32415] libgcc_s not found in library search path with --enable-version-specific-runtime-libs
- Auto-submitted: auto-generated
- References: <bug-32415-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=32415
--- Comment #17 from Harald van Dijk <harald at gigawatt dot nl> ---
(In reply to Xi Ruoyao from comment #16)
> But if we do that there would be no PREFIX/lib(64)/libgcc_s.so.1.
Indeed, and there shouldn't be. Not providing libgcc* in that location is
exactly how --enable-version-specific-runtime-libs used to work.
> Then we
> have to add PREFIX/lib/gcc/{arch}/{version}/{multilibdir} to ld.so.conf.
As mentioned on
<https://gcc.gnu.org/onlinedocs/libstdc++/manual/configure.html>, this option
can be used to install multiple versions of GCC side by side. If one version of
GCC is built without --enable-version-specific-runtime-libs, that version of
GCC provides the version of the libraries to be used at run-time.
Alternatively, indeed, ld.so.conf. Or manually create symlinks.