[RFA] Remove -V
Geoff Keating
geoffk@geoffk.org
Mon May 13 17:18:00 GMT 2002
Jonathan Lennox <lennox@cs.columbia.edu> writes:
> On Monday, May 13 2002, "Geoff Keating" wrote to "lennox@cs.columbia.edu, aoliva@redhat.com, neil@daikokuya.demon.co.uk, gcc-patches@gcc.gnu.org" saying:
>
> > Shared libraries have their own version numbers, so they can stay
> > where they are. (For instance, the latest libgcc_s.so should work
> > with earlier GCC versions.)
>
> Shared library versioning works for run-time dynamic linking, but what about
> actual link-time linking? That is to say, even if
> $(prefix)/lib/libstdc++.so.3.0.4 exists, ld will interpret -lstdc++ to mean
> "link with $(prefix)/lib/libstdc++.so", even if that's actually a symlink to
> $(prefix)/lib/libstdc++.so.3.1.0.
Yes, so the symlink 'libstdc++.so' should be in
$(prefix)/lib/gcc-lib/$(target_alias)/$(VERSION), which is where it
seems to be.
> The same thing applies, only more so, when linking statically, since static
> libraries don't have any inherent versioning at all.
... and static libraries should be in the same place.
--
- Geoffrey Keating <geoffk@geoffk.org> <geoffk@redhat.com>
More information about the Gcc-patches
mailing list