From owner-cvs-src@FreeBSD.ORG Thu Sep 4 13:59:58 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 0FA2E16A4BF; Thu, 4 Sep 2003 13:59:58 -0700 (PDT) Received: from dragon.nuxi.com (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B12A43FD7; Thu, 4 Sep 2003 13:59:57 -0700 (PDT) (envelope-from obrien@dragon.nuxi.com) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.12.9/8.12.9) with ESMTP id h84KxunW002827; Thu, 4 Sep 2003 13:59:56 -0700 (PDT) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.9/8.12.9/Submit) id h84Kxtn8002826; Thu, 4 Sep 2003 13:59:55 -0700 (PDT) (envelope-from obrien) Date: Thu, 4 Sep 2003 13:59:54 -0700 From: "David O'Brien" To: Ruslan Ermilov Message-ID: <20030904205954.GA2702@dragon.nuxi.com> References: <200309040429.h844TBhD058678@repoman.freebsd.org> <20030904083617.GA56261@dragon.nuxi.com> <20030904092755.GD45051@sunbay.com> <20030904140129.GA61909@dragon.nuxi.com> <20030904155659.GC97732@sunbay.com> <20030904162656.GA396@dragon.nuxi.com> <20030904174100.GY695@roark.gnf.org> <20030904185839.GB4481@sunbay.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030904185839.GB4481@sunbay.com> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 5.1-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 cc: Gordon Tetlow cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org cc: Peter Wemm cc: cvs-src@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 Reply-To: obrien@FreeBSD.org List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Sep 2003 20:59:58 -0000 On Thu, Sep 04, 2003 at 09:58:39PM +0300, Ruslan Ermilov wrote: > Linux looks things up in both /lib and > /usr/lib, and does not have symlinks from /usr/lib to /lib. uh? suse# cat /usr/lib/libc.so /* GNU ld script Use the shared library, but some functions are only in the static library, so try that secondarily. */ GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a ) suse# ls /lib/libc.* /usr/lib/libc.* /lib/libc.so.6* /usr/lib/libc.a /usr/lib/libc.so > The only reason while I still think we should support both > /lib and /usr/lib in cc(1) and ld(1) by default is to allow > our users to have /usr symlinked somethere, otherwise relative > symlinking from /usr/lib to ../../lib does not work, and we > are back to that endless thread. BTW, NetBSD uses absolute > paths in symlinks from /usr/lib to /lib: > > > ls -l /usr/lib/libz.so* > lrwxr-xr-x 1 root wheel 16 Aug 30 14:58 /usr/lib/libz.so -> /lib/libz.so.0.3 > lrwxr-xr-x 1 root wheel 16 Aug 30 14:58 /usr/lib/libz.so.0 -> /lib/libz.so.0.3 > lrwxr-xr-x 1 root wheel 16 Aug 30 14:58 /usr/lib/libz.so.0.3 -> /lib/libz.so.0.3 I think we should also -- one does not care about the .so links when running single user with / mounted elsewhere.