Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Sep 2003 09:12:13 -0700
From:      Gordon Tetlow <gordont@gnf.org>
To:        Ruslan Ermilov <ru@FreeBSD.org>
Cc:        Peter Wemm <peter@wemm.org>
Subject:   Re: cvs commit: src/share/mk bsd.lib.mk
Message-ID:  <20030905161213.GA695@roark.gnf.org>
In-Reply-To: <20030905074203.GA87190@sunbay.com>
References:  <20030904162656.GA396@dragon.nuxi.com> <20030905042244.DA1AD2A8D5@canning.wemm.org> <20030905074203.GA87190@sunbay.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--CaDA/LpMQ9SI3HwJ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Sep 05, 2003 at 10:42:03AM +0300, Ruslan Ermilov wrote:
> 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.  B=
ut
> > when called by cc, cc adds -L/usr/lib which means the search path becom=
es
> > /usr/lib, /lib, /usr/lib.  So if /usr/lib/libc.a exists and /usr/lib/li=
bc.so
> > does not, then it will link statically.  The same goes for old build sc=
ripts
> > etc.  If anything adds -L/usr/lib to the beginning of the search path, =
then
> > 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 su=
re
> > 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:
>=20
> 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

This symlink needs to be preceded by a chflags noschg since existing
the /usr/lib/libc.so.5 is immutable. FYI.

> ln -fs /lib/libc.so.5  /usr/lib/libc.so
>=20
> 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

This looks good though! Thanks for doing the legwork.

-gordon

--CaDA/LpMQ9SI3HwJ
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)

iD8DBQE/WLXdRu2t9DV9ZfsRAi4yAJ9+xDVDB7W4tjF3hepsEmx87pSBIQCeJcub
fV6/TJjHcqFrpz/E1iJLUbs=
=+AbQ
-----END PGP SIGNATURE-----

--CaDA/LpMQ9SI3HwJ--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030905161213.GA695>