Date: Wed, 5 Feb 2014 16:41:42 +1100 From: Peter Jeremy <peter@rulingia.com> To: "Montgomery-Smith, Stephen" <stephen@missouri.edu> Cc: Konstantin Belousov <kostikbel@gmail.com>, FreeBSD Ports <freebsd-ports@FreeBSD.org> Subject: Re: Solved - was: Problems with linking on FreeBSD-10 Message-ID: <20140205054142.GB12626@server.rulingia.com> In-Reply-To: <52F15DDA.3000101@missouri.edu> References: <52EAEC1D.9040502@missouri.edu> <20140131132504.GZ24664@kib.kiev.ua> <52EBDDDC.7000702@missouri.edu> <52F15DDA.3000101@missouri.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
--M9NhX3UHpAaciwkO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2014-Feb-04 21:38:42 +0000, "Montgomery-Smith, Stephen" <stephen@missour= i.edu> wrote: >/usr/home/stephen/sage/work/sage-6.0/local/lib contained >libreadline.so.6. But for ld to work, it also had to contain a link >libreadline.so->libreadline.so.6. > >(Is this sort of behavior documented anywhere?) I think it's sort-of communal mind knowlegde rather than being specifically written down: If the loader sees '-lfoo', it looks for libfoo.so or libfoo= =2Ea in locations specified by -L. If it finds libfoo.so then it will read at internal name out of it (eg libfoo.so.5) and store that in the executable. The rtld will then look for libfoo.so.5 using -rpath locations. ISTR having to manually craft some libfoo.so -> libfoo.so.N during my sage porting efforts. The sage build process knows far too much about toolchain innards. --=20 Peter Jeremy --M9NhX3UHpAaciwkO Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iKYEARECAGYFAlLxzxZfFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl bnBncC5maWZ0aGhvcnNlbWFuLm5ldDBCRjc3QTcyNTg5NEVCRTY0RjREN0VFRUZF OEE0N0JGRjAwRkI4ODcACgkQ/opHv/APuIf0RACeN+Eyg7Cuyhp+DH6P4UJLCnlD RPoAoIpmXVYg0gf488pCsayMXfqizb5i =yc3F -----END PGP SIGNATURE----- --M9NhX3UHpAaciwkO--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140205054142.GB12626>