Date: Wed, 13 Jun 2007 08:37:51 -0400 From: Alexander Kabaev <kabaev@gmail.com> To: Jeremie Le Hen <jeremie@le-hen.org> Cc: freebsd-current@freebsd.org Subject: Re: "-pthread" == "-lpthread" for shared libs in -CURRENT 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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On Wed, 13 Jun 2007 08:48:06 +0200 Jeremie Le Hen <jeremie@le-hen.org> wrote: > Hi, > > I take advantage of this thread to ask something I've always wanted to > understand but never have an explanation. > > What prevented to link shared libraries against libc with the old GCC? > > Thank you. > Best regards, > -- > 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. -- Alexander Kabaev [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGb+UfQ6z1jMm+XZYRAhzbAJ9Ne1Lg+T1Gq8WOzJEljQRO6RcGdgCgwc02 U+w7pO+FV1sO3wyPPhm5Fas= =as+a -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070613083751.606eee96>
