From owner-cvs-src@FreeBSD.ORG Tue Sep 2 08:57:30 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 773E916A4BF; Tue, 2 Sep 2003 08:57:30 -0700 (PDT) Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 81F6A43FBF; Tue, 2 Sep 2003 08:57:24 -0700 (PDT) (envelope-from ru@sunbay.com) Received: from whale.sunbay.crimea.ua (ru@localhost [127.0.0.1]) h82FvI86067056 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 2 Sep 2003 18:57:18 +0300 (EEST) (envelope-from ru@sunbay.com) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.12.9/8.12.8/Submit) id h82FvIFl067051; Tue, 2 Sep 2003 18:57:18 +0300 (EEST) (envelope-from ru) Date: Tue, 2 Sep 2003 18:57:18 +0300 From: Ruslan Ermilov To: Daniel Eischen Message-ID: <20030902155718.GD64892@sunbay.com> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SFyWQ0h3ruR435lw" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: Robert Watson cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/contrib/gcc/config freebsd-spec.h 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: Tue, 02 Sep 2003 15:57:30 -0000 --SFyWQ0h3ruR435lw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > On Tue, 2 Sep 2003, Robert Watson wrote: [...] > > The effect I'm most interested in "getting right" at this point has to = do > > with library dependencies in third party applications. Right now, when= we > > build QT on FreeBSD, the resulting library has an explicit dependency on > > libc_r: > >=20 > > paprika# ldd /usr/X11R6/lib/libqt-mt.so > > /usr/X11R6/lib/libqt-mt.so: > > libmng.so.1 =3D> /usr/local/lib/libmng.so.1 (0x287bc000) > > ... > > libc_r.so.5 =3D> /usr/lib/libkse.so.1 (0x28b06000) > > ... > >=20 > > On my notebook, I use libmapl.conf to rewrite the dependency such that = KSE > > is used. I think it's very important that we avoid a situation where, = if > > there are potential future changes in threading libraries, we find > > binaries dependent on various threading libraries. I'd like to see a > > dependency on a single name, with a way to substitute that name. I.e., > > all libraries dependent on a threading library, unless explicitly > > configured otherwise, should be linked against a single common library. > >=20 > > Otherwise, if we wipe out libc_r someday, or remove the 1:1 version of = KDE > > and decide M:N is the one true way, we'll leave users up a creek. If the idea is to always have binaries internally linked to one name, that could be tricky. The problem is that linker takes an internal name of the library from the library's binary, so if you link against -lfoo, and /usr/lib/foo.so -> /usr/lib/bar.so, bar.so is what will be written into a binary. We've been through this already with libtermcap -> libncurses. Cheers, --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software Ltd, ru@FreeBSD.org FreeBSD committer --SFyWQ0h3ruR435lw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE/VL3dUkv4P6juNwoRAv6hAJ4+iwuy7LEoH22fsuW2NwAslG+MygCgjUba VbeOcD4iEjVCpnn68DBBe0M= =AeUm -----END PGP SIGNATURE----- --SFyWQ0h3ruR435lw--