From owner-cvs-src@FreeBSD.ORG Fri Sep 5 00:43:49 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9D78916A4BF; Fri, 5 Sep 2003 00:43:49 -0700 (PDT) Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1366544003; Fri, 5 Sep 2003 00:42:25 -0700 (PDT) (envelope-from ru@sunbay.com) Received: from whale.sunbay.crimea.ua (ru@localhost [127.0.0.1]) h857gH86089530 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 5 Sep 2003 10:42:17 +0300 (EEST) (envelope-from ru@sunbay.com) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.12.9/8.12.8/Submit) id h857g3no089509; Fri, 5 Sep 2003 10:42:03 +0300 (EEST) (envelope-from ru) Date: Fri, 5 Sep 2003 10:42:03 +0300 From: Ruslan Ermilov To: Peter Wemm Message-ID: <20030905074203.GA87190@sunbay.com> References: <20030904162656.GA396@dragon.nuxi.com> <20030905042244.DA1AD2A8D5@canning.wemm.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="pf9I7BMVVzbSWLtt" Content-Disposition: inline In-Reply-To: <20030905042244.DA1AD2A8D5@canning.wemm.org> User-Agent: Mutt/1.5.4i cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org cc: obrien@FreeBSD.org Subject: Re: cvs commit: src/share/mk bsd.lib.mk X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Sep 2003 07:43:49 -0000 --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--