X-Original-To: pgsql-patches-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id DCD98DBB60; Fri, 25 Nov 2005 13:02:27 -0400 (AST) 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 40027-03; Fri, 25 Nov 2005 17:02:24 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- X-Greylist: from auto-whitelisted by SQLgrey- X-Greylist: from auto-whitelisted by SQLgrey- Received: from candle.pha.pa.us (candle.pha.pa.us [64.139.89.126]) by svr1.postgresql.org (Postfix) with ESMTP id 5AE49DAFA5; Fri, 25 Nov 2005 13:02:22 -0400 (AST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id jAPH24004546; Fri, 25 Nov 2005 12:02:04 -0500 (EST) From: Bruce Momjian Message-Id: <200511251702.jAPH24004546@candle.pha.pa.us> Subject: Re: [HACKERS] Should libedit be preferred to libreadline? In-Reply-To: <20051122095747.GA12548@svana.org> To: Martijn van Oosterhout Date: Fri, 25 Nov 2005 12:02:04 -0500 (EST) CC: Zeugswetter Andreas DCP SD , Seneca Cunningham , pgsql-hackers@postgresql.org, pgsql-ports@postgresql.org, pgsql-patches@postgresql.org X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.024 required=5 tests=[AWL=0.024] X-Spam-Score: 0.024 X-Spam-Level: X-Archive-Number: 200511/170 X-Sequence-Number: 17919 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