pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: hlinnaka@iki.fi
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Replace our hacked version of ax_pthread.m4 with latest upstream
Date: Sun, 02 Aug 2015 15:57:39 -0400
Message-ID: <4280.1438545459@sss.pgh.pa.us> (raw)
In-Reply-To: <55BE176F.3070901@iki.fi>
References: <E1ZCtMW-0001iM-BK@gemulon.postgresql.org>
	<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>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Heikki Linnakangas <hlinnaka@iki.fi> 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



view thread (16+ messages)  latest in thread

Message-ID: <4280.1438545459@sss.pgh.pa.us>
Permalink:  ../4280.1438545459@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4280.1438545459@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, hlinnaka@iki.fi
  Subject: Re: pgsql: Replace our hacked version of ax_pthread.m4 with latest upstream
  In-Reply-To: <4280.1438545459@sss.pgh.pa.us>
  References: <E1ZCtMW-0001iM-BK@gemulon.postgresql.org> <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> <4280.1438545459@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox