From owner-freebsd-current@FreeBSD.ORG Wed Jun 13 12:37:58 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 394FE16A400 for ; Wed, 13 Jun 2007 12:37:58 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.232]) by mx1.freebsd.org (Postfix) with ESMTP id D63BA13C45A for ; Wed, 13 Jun 2007 12:37:57 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: by wx-out-0506.google.com with SMTP id h28so150996wxd for ; Wed, 13 Jun 2007 05:37:57 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer:mime-version:content-type; b=o3wUTxjNe7J/x4tLMiS5Xp9bTMcH4iY6JezRyc2a8/mdR4HW688pYGk/V5uJIvKKJAZuM1SdvByMfKtsLhD/bu+jDZq6XHxGU23wUXfUi00AzrvUx07UJ3rifvgUkv7MvmMBOGcUCiHZ84SPLu/+W8ncCojUZjlsdzCVLZiMMm8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer:mime-version:content-type; b=qpWbDsbLMnTmH0QqVRL1ePsI6AyNRWvwvp2a7lrgMGH2l+LepmbGPPtTgULuEQHu+6BY7Mhfu/cC9RC18Pz1/mvUFOuV9dcgUTsH3T6eUAan4S3WjUgnTOQCIaSsZJE1dmr9HCqcIHWfg+YiJzNMLz4o7e3A1fiAx2/vYr1q5ME= Received: by 10.90.29.18 with SMTP id c18mr215461agc.1181738276693; Wed, 13 Jun 2007 05:37:56 -0700 (PDT) Received: from kan.dnsalias.net ( [24.34.98.164]) by mx.google.com with ESMTP id q57sm831449wrq.2007.06.13.05.37.55 (version=SSLv3 cipher=OTHER); Wed, 13 Jun 2007 05:37:56 -0700 (PDT) Date: Wed, 13 Jun 2007 08:37:51 -0400 From: Alexander Kabaev To: Jeremie Le Hen Message-ID: <20070613083751.606eee96@kan.dnsalias.net> In-Reply-To: <20070613064806.GB39533@obiwan.tataz.chchile.org> References: <20070602121928.G90169@kushnir1.kiev.ua> <20070613064806.GB39533@obiwan.tataz.chchile.org> X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.12; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_2lPW=.n2ZeAdpApKXN8oAZ1"; protocol="application/pgp-signature"; micalg=PGP-SHA1 Cc: freebsd-current@freebsd.org Subject: Re: "-pthread" == "-lpthread" for shared libs in -CURRENT X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2007 12:37:58 -0000 --Sig_2lPW=.n2ZeAdpApKXN8oAZ1 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Wed, 13 Jun 2007 08:48:06 +0200 Jeremie Le Hen wrote: > Hi, >=20 > I take advantage of this thread to ask something I've always wanted to > understand but never have an explanation. >=20 > What prevented to link shared libraries against libc with the old GCC? >=20 > Thank you. > Best regards, > --=20 > Jeremie Le Hen > < jeremie at le-hen dot org >< ttz at chchile dot org> I think this was related to the way we used to support threads in 3.x/early 4.x releases. The program was supposed to link with either libc or libc_r, but not both and having both libraries loaded at the same time was really bad idea. Recording dependency to libc_r or libc into shared libraries makes shared libraries that work in both threaded and non-threaded programs impossible. --=20 Alexander Kabaev --Sig_2lPW=.n2ZeAdpApKXN8oAZ1 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGb+UfQ6z1jMm+XZYRAhzbAJ9Ne1Lg+T1Gq8WOzJEljQRO6RcGdgCgwc02 U+w7pO+FV1sO3wyPPhm5Fas= =as+a -----END PGP SIGNATURE----- --Sig_2lPW=.n2ZeAdpApKXN8oAZ1--