Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZLzOL-0003dE-24 for pgsql-committers@arkaria.postgresql.org; Sun, 02 Aug 2015 19:57:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZLzOK-000364-Jr for pgsql-committers@arkaria.postgresql.org; Sun, 02 Aug 2015 19:57:52 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZLzOJ-00035g-Si for pgsql-committers@postgresql.org; Sun, 02 Aug 2015 19:57:52 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZLzOG-0005Qb-HA for pgsql-committers@postgresql.org; Sun, 02 Aug 2015 19:57:50 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t72JvdFw004281; Sun, 2 Aug 2015 15:57:39 -0400 From: Tom Lane To: hlinnaka@iki.fi cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Replace our hacked version of ax_pthread.m4 with latest upstream In-reply-to: <55BE176F.3070901@iki.fi> References: <10166.1436386332@sss.pgh.pa.us> <11970.1436386843@sss.pgh.pa.us> <559D8887.6020005@iki.fi> <13340.1436387986@sss.pgh.pa.us> <559D917C.6030201@iki.fi> <25767.1437859156@sss.pgh.pa.us> <55B49111.9010508@iki.fi> <55BE176F.3070901@iki.fi> Comments: In-reply-to Heikki Linnakangas message dated "Sun, 02 Aug 2015 16:13:19 +0300" Date: Sun, 02 Aug 2015 15:57:39 -0400 Message-ID: <4280.1438545459@sss.pgh.pa.us> X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org Heikki Linnakangas writes: > I went through the results, and I believe the script is working the way > we want now. Attached is a trimmed result set, where I have removed all > the animals where there was no change in the PTHREAD_CFLAGS value chosen > between the three versions (configlogs-trimmed). I've also attached the > raw results and the query I used, for the sake of the archives > (configlogs-raw) Cool, thanks for doing the legwork on this! > On some platforms, however, we are now getting duplicate -D options, > e.g. on dromedary: >> PTHREAD_CFLAGS='-D_REENTRANT -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS' > That's harmless, but it would be nice to not clutter the cc command > line. It's happening because we are doing this in configure.in: >> # Some platforms use these, so just define them. They can't hurt if they >> # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS >> # enables 5-arg getpwuid_r, among other things. >> PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS" > I'm tempted to just remove -D_REENTRAND and -D_THREAD_SAFE, because > ax_pthread.m4 knows about those, and will add them on platforms where > they are needed. Any objections? Seems worth a try anyway. regards, tom lane -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers