Date: Fri, 5 Sep 2003 10:42:03 +0300 From: Ruslan Ermilov <ru@FreeBSD.org> To: Peter Wemm <peter@wemm.org> Cc: obrien@FreeBSD.org Subject: Re: cvs commit: src/share/mk bsd.lib.mk Message-ID: <20030905074203.GA87190@sunbay.com> In-Reply-To: <20030905042244.DA1AD2A8D5@canning.wemm.org> References: <20030904162656.GA396@dragon.nuxi.com> <20030905042244.DA1AD2A8D5@canning.wemm.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--pf9I7BMVVzbSWLtt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 04, 2003 at 09:22:44PM -0700, Peter Wemm wrote: [...] > I'm really not hung up on whether we expose /lib to the toolchain, but I = do > feel that we're asking for trouble if 'cc' and 'ld' do not agree about the > default search path. Currently, 'ld' searches /lib before /usr/lib. But > when called by cc, cc adds -L/usr/lib which means the search path becomes > /usr/lib, /lib, /usr/lib. So if /usr/lib/libc.a exists and /usr/lib/libc= =2Eso > does not, then it will link statically. The same goes for old build scri= pts > etc. If anything adds -L/usr/lib to the beginning of the search path, th= en > we are sunk. >=20 > My preference is to Keep It Simple and have things arranged like this: >=20 > /usr/lib/libc.a > /usr/lib/libc.so -> /lib/libc.so.5 > /usr/lib/libc.so.5 -> /lib/libc.so.5 > /lib/libc.so.5 >=20 > Note that the third one is solely for anti-foot-shooting and to make sure > that any stale /usr/lib/libc.so.5's get removed. >=20 Yeah, I've updated my patch similarly due to this same consideration, now it looks like this: install -C -o root -g wheel -m 444 libc.a /usr/lib install -s -o root -g wheel -m 444 -fschg libc.so.5 /lib ln -fs /lib/libc.so.5 /usr/lib/libc.so.5 ln -fs /lib/libc.so.5 /usr/lib/libc.so install -C -o root -g wheel -m 444 libwrap.a /usr/lib install -s -o root -g wheel -m 444 libwrap.so.3 /usr/lib ln -fs libwrap.so.3 /usr/lib/libwrap.so Cheers, --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software Ltd, ru@FreeBSD.org FreeBSD committer --pf9I7BMVVzbSWLtt Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE/WD5LUkv4P6juNwoRAnTSAJ93ABr8RcHvMtkKwMuTRrq8f7YVWwCggpk8 +PT2YObgWbtGO9xhMwtPZDk= =VnAb -----END PGP SIGNATURE----- --pf9I7BMVVzbSWLtt--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030905074203.GA87190>