Unix Technical Forum

probably needless linking against readline and ncurses

This is a discussion on probably needless linking against readline and ncurses within the pgsql Hackers forums, part of the PostgreSQL category; --> Hi, it appears all of PostgreSQL's binaries are linked against libreadline and libncurses, but the only one that really ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-11-2008, 04:23 AM
Reinhard Max
 
Posts: n/a
Default probably needless linking against readline and ncurses

Hi,

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?

cu
Reinhard

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-11-2008, 04:23 AM
Alvaro Herrera
 
Posts: n/a
Default Re: probably needless linking against readline and ncurses

On Mon, Apr 11, 2005 at 02:46:09PM +0200, Reinhard Max wrote:

> 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?


No. In fact somebody came up with a patch to solve that and it was
rejected because of maintenability (or portability) issues.

--
Alvaro Herrera (<alvherre[@]dcc.uchile.cl>)
FOO MANE PADME HUM

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-11-2008, 04:23 AM
Tom Lane
 
Posts: n/a
Default Re: probably needless linking against readline and ncurses

Reinhard Max <Reinhard@m4x.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

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:24 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com