From owner-freebsd-ports Wed Feb 7 13: 5:29 2001 Delivered-To: freebsd-ports@freebsd.org Received: from blizzard.sabbo.net (smtp.sabbo.net [193.193.218.18]) by hub.freebsd.org (Postfix) with ESMTP id D4C8837B4EC; Wed, 7 Feb 2001 13:05:04 -0800 (PST) Received: from vic.sabbo.net (root@vic.sabbo.net [193.193.218.112]) by blizzard.sabbo.net (8.10.1/8.10.1) with ESMTP id f17L4xg07089; Wed, 7 Feb 2001 23:05:01 +0200 Received: from FreeBSD.org (big_brother.vega.com [192.168.1.1]) by vic.sabbo.net (8.11.2/8.11.2) with ESMTP id f17L54m07960; Wed, 7 Feb 2001 23:05:04 +0200 (EET) (envelope-from sobomax@FreeBSD.org) Message-ID: <3A81B87E.733AC0DD@FreeBSD.org> Date: Wed, 07 Feb 2001 23:05:02 +0200 From: Maxim Sobolev Organization: Vega International Capital X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: uk,ru,en MIME-Version: 1.0 To: FUJISHIMA Satsuki , John Polstra , ports@FreeBSD.org, obrien@FreeBSD.org Subject: -pthread and shareable modules [WAS: Strange problems with dynamic linking of libGL.so.1 from XFree86-4.0.2_5] References: <3A6C3D19.E1F56291@FreeBSD.org> <3A6FE52B.AC9970C2@FreeBSD.org> <200101251842.f0PIgTL32394@vashon.polstra.com> <3A70756F.D8A7ED75@FreeBSD.org> <200101251903.f0PJ3qF32488@vashon.polstra.com> <3A755D84.266A80E7@FreeBSD.org> <86vgqn7vj4.wl@cheerful.com> <3A8188ED.FC2A6241@FreeBSD.org> Content-Type: multipart/mixed; boundary="------------088A5CEB77CF590AF02D81D2" Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This is a multi-part message in MIME format. --------------088A5CEB77CF590AF02D81D2 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Maxim Sobolev wrote: > FUJISHIMA Satsuki wrote: > > > As libc_r does not have libc feature now, there's no reason to avoid > > linking -lc_r against shared libraries, I think. > > > > David, John what do you think about this patch? BTW, I tested it and it solved this problem (though I have to remove excessive "}" from the patch proposed by FUJISHIMA. May I cvs ci it? -Maxim --------------088A5CEB77CF590AF02D81D2 Content-Type: text/plain; charset=koi8-r; name="diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diff" Index: src/contrib/gcc.295/config/freebsd.h =================================================================== RCS file: /home/ncvs/src/contrib/gcc.295/config/freebsd.h,v retrieving revision 1.31 diff -d -u -r1.31 freebsd.h --- src/contrib/gcc.295/config/freebsd.h 2001/01/25 18:57:13 1.31 +++ src/contrib/gcc.295/config/freebsd.h 2001/02/07 21:00:12 @@ -76,10 +76,8 @@ (like the default, except no -lg, and no -p). */ #undef LIB_SPEC #define LIB_SPEC "\ - %{!shared: \ - %{!pg: %{pthread:-lc_r} -lc} \ - %{pg: %{pthread:-lc_r_p} -lc_p} \ - }" + %{!pg: %{pthread:-lc_r} -lc} \ + %{pg: %{pthread:-lc_r_p} -lc_p}" /************************[ Target stuff ]***********************************/ --------------088A5CEB77CF590AF02D81D2-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message