From owner-cvs-all@FreeBSD.ORG Fri Sep 5 09:12:16 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5EB2A16A4BF; Fri, 5 Sep 2003 09:12:16 -0700 (PDT) Received: from ns1.gnf.org (ns1.gnf.org [63.196.132.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id 063F544001; Fri, 5 Sep 2003 09:12:15 -0700 (PDT) (envelope-from gtetlow@gnf.org) Received: from EXCHCLUSTER01.lj.gnf.org (exch02.lj.gnf.org [172.25.10.20]) by ns1.gnf.org (8.12.8p1/8.12.8) with ESMTP id h85GCEtF098764; Fri, 5 Sep 2003 09:12:14 -0700 (PDT) (envelope-from gtetlow@gnf.org) Received: from roark.gnf.org ([172.25.24.15]) by EXCHCLUSTER01.lj.gnf.org with Microsoft SMTPSVC(5.0.2195.5329); Fri, 5 Sep 2003 09:12:14 -0700 Received: from roark.gnf.org (localhost [127.0.0.1]) by roark.gnf.org (8.12.9/8.12.9) with ESMTP id h85GCEaH014939; Fri, 5 Sep 2003 09:12:14 -0700 (PDT) (envelope-from gtetlow@gnf.org) Received: (from gtetlow@localhost) by roark.gnf.org (8.12.9/8.12.9/Submit) id h85GCDjZ014938; Fri, 5 Sep 2003 09:12:13 -0700 (PDT) (envelope-from gtetlow) Date: Fri, 5 Sep 2003 09:12:13 -0700 From: Gordon Tetlow To: Ruslan Ermilov Message-ID: <20030905161213.GA695@roark.gnf.org> References: <20030904162656.GA396@dragon.nuxi.com> <20030905042244.DA1AD2A8D5@canning.wemm.org> <20030905074203.GA87190@sunbay.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="CaDA/LpMQ9SI3HwJ" Content-Disposition: inline In-Reply-To: <20030905074203.GA87190@sunbay.com> User-Agent: Mutt/1.4.1i X-Habeas-SWE-1: winter into spring X-Habeas-SWE-2: brightly anticipated X-Habeas-SWE-3: like Habeas SWE (tm) X-Habeas-SWE-4: Copyright 2002 Habeas (tm) X-Habeas-SWE-5: Sender Warranted Email (SWE) (tm). The sender of this X-Habeas-SWE-6: email in exchange for a license for this Habeas X-Habeas-SWE-7: warrant mark warrants that this is a Habeas Compliant X-Habeas-SWE-8: Message (HCM) and not spam. Please report use of this X-Habeas-SWE-9: mark in spam to . X-OriginalArrivalTime: 05 Sep 2003 16:12:14.0747 (UTC) FILETIME=[786B7EB0:01C373C8] cc: cvs-all@FreeBSD.org cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: obrien@FreeBSD.org cc: Peter Wemm Subject: Re: cvs commit: src/share/mk bsd.lib.mk X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Sep 2003 16:12:16 -0000 --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--