X-Original-To: pgsql-patches-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 22DF95E40BA for ; Thu, 19 Aug 2004 04:45:21 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 28017-02 for ; Thu, 19 Aug 2004 07:45:12 +0000 (GMT) Received: from mail2.trustcenter.de (mail2.trustcenter.de [193.194.157.2]) by svr1.postgresql.org (Postfix) with ESMTP id 420B15E37D0 for ; Thu, 19 Aug 2004 04:45:08 -0300 (ADT) Received: from hermes.trustcenter.de (hermes.trustcenter.de [192.168.202.5]) by mail2.trustcenter.de (8.12.11/8.12.11) with ESMTP id i7J7isJm007668; Thu, 19 Aug 2004 09:44:54 +0200 (CEST) Received: from [192.168.201.14] (titan.trustcenter.de [192.168.200.244]) by hermes.trustcenter.de (8.12.10/8.12.10/Debian-5) with ESMTP id i7J7ihmX019730; Thu, 19 Aug 2004 09:44:46 +0200 Message-ID: <41245A6B.3010705@betrusted.com> Date: Thu, 19 Aug 2004 09:44:43 +0200 From: =?ISO-8859-1?Q?Martin_M=FCnstermann?= User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.7.1) Gecko/20040707 X-Accept-Language: en-us, en, de-de, it MIME-Version: 1.0 To: Bruce Momjian Cc: Robert Treat , PostgreSQL-patches Subject: Re: [BUGS] 8.0.0beta1: -lpthread missing References: <200408171522.i7HFM1k04107@candle.pha.pa.us> In-Reply-To: <200408171522.i7HFM1k04107@candle.pha.pa.us> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/460 X-Sequence-Number: 12749 Bruce Momjian wrote: > OK, I got it working now. Seems the code needed more help to loop than > I though, and of course trying to change it as little as possible caused > me to miss that. > > The attached, applied patch properly aggregates the thread flags. The > bad news is that on my platform that needs _no_ thread flags or > libraries I have: > > PTHREAD_CFLAGS =3D -Kthread -kthread -pthread -pthreads > -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS > PTHREAD_LIBS =3D > > I assume those are just ignored for portability so I assume we are OK. Current CVS is working for Solaris, too. Compiles and libthread.so is used at runtime. :-) PTHREAD_CFLAGS = -pthreads -Kthread -kthread -pthread -pthreads -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS PTHREAD_LIBS = -lpthread -lpthread The -Kthread -kthread is not needed here, but is included because gcc 3.2 does not treat them as error, but just dumps out "gcc: unrecognized option `-kthread'". Regards, Martin