pg.ddx.io  pgsql-ports@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Martijn van Oosterhout <kleptog@svana.org>
Cc: Zeugswetter Andreas DCP SD <ZeugswetterA@spardat.at>
Cc: Seneca Cunningham <scunning@ca.afilias.info>
Cc: pgsql-hackers@postgresql.org
Cc: pgsql-ports@postgresql.org
Cc: pgsql-patches@postgresql.org
Subject: Re: [HACKERS] Should libedit be preferred to libreadline?
Date: Fri, 25 Nov 2005 12:02:04 -0500 (EST)
Message-ID: <200511251702.jAPH24004546@candle.pha.pa.us> (raw)
In-Reply-To: <20051122095747.GA12548@svana.org>

Martijn van Oosterhout wrote:
-- Start of PGP signed section.
> On Tue, Nov 22, 2005 at 10:07:15AM +0100, Zeugswetter Andreas DCP SD wrote:
> > PS: I'd prefer if readline was only linked where it is needed, namely in
> > psql.
> 
> The problem as stated is that people don't want to maintain lists of
> libraries as needed by each program, so we link all of them.
> 
> Since it seems to always be the same few libraries that cause us
> problems, maybe a simpler approach would be to, in the Makefile, use
> filter-out to exclude libraries you *know* aren't needed. Like in the
> Makefile we put:
> 
> postgres: $(OBJS)
>         $(CC) $(CFLAGS) $(LDFLAGS) $(export_dynamic) $^ $(filter-out -lreadline -ledit, $(LIBS)) -o $@

Agreed.  I have no idea why this has not been done already.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073



view thread (36+ messages)  latest in thread

Message-ID: <200511251702.jAPH24004546@candle.pha.pa.us>
Permalink:  ../200511251702.jAPH24004546@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200511251702.jAPH24004546@candle.pha.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-ports@postgresql.org
  Cc: pgman@candle.pha.pa.us, kleptog@svana.org, ZeugswetterA@spardat.at, scunning@ca.afilias.info, pgsql-hackers@postgresql.org, pgsql-patches@postgresql.org
  Subject: Re: [HACKERS] Should libedit be preferred to libreadline?
  In-Reply-To: <200511251702.jAPH24004546@candle.pha.pa.us>
  References: <20051122095747.GA12548@svana.org> <200511251702.jAPH24004546@candle.pha.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