Re: probably needless linking against readline and ncurses

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Reinhard Max <Reinhard(at)m4x(dot)de>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: probably needless linking against readline and ncurses
Date: 2005-04-11 20:21:40
Message-ID: 7250.1113250900@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Reinhard Max <Reinhard(at)m4x(dot)de> writes:
> it appears all of PostgreSQL's binaries are linked against libreadline and
> libncurses, but the only one that really needs them seems to be psql.
> Is there a reason behind this other than that it might be easier to have
> only one set of linker switches that can be used for everything?

Exactly. Autoconf isn't really very helpful about generating multiple
sets of library lists within one package, and it's never been worth the
trouble to deal with that.

On some platforms there's a linker switch that can be used to prevent
useless libraries from being bound to the executable. We probably ought
to use that where available.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2005-04-11 20:31:41 Re: NetBSD mac68k crashing on union regression test
Previous Message Alvaro Herrera 2005-04-11 20:09:43 Re: probably needless linking against readline and ncurses