This is the mail archive of the gcc-bugs@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]

[Bug other/32415] libgcc_s not found in library search path with --enable-version-specific-runtime-libs


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.

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