Re: configure.in and setproctitle/optreset problem - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: configure.in and setproctitle/optreset problem
Date
Msg-id 1355810925.30875.4.camel@vanquo.pezone.net
Whole thread Raw
In response to configure.in and setproctitle/optreset problem  (Christoph Berg <christoph.berg@credativ.de>)
Responses Re: configure.in and setproctitle/optreset problem  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Mon, 2012-12-17 at 18:02 +0100, Christoph Berg wrote:
> I have no clue why no one else has seen this bug before, but the
> reason for the error seems to be that configure is invoking the
> setproctitle test including -ledit. libedit.so is linked to libbsd.so,
> which in turn contains setproctitle(), so HAVE_SETPROCTITLE is set
> even this is Linux, not BSD. 

I reported this here:
http://archives.postgresql.org/pgsql-bugs/2012-07/msg00127.php

The correct fix, IMO/IIRC, is to add LDFLAGS=-Wl,--as-needed before
running most of the configure checks, instead of after.




pgsql-hackers by date:

Previous
From: Jeff Janes
Date:
Subject: Re: [PERFORM] Slow query: bitmap scan troubles
Next
From: Alexander Korotkov
Date:
Subject: Re: WIP: index support for regexp search