Re: Static build of psql with readline support

From: Mark Kirkwood <markir(at)paradise(dot)net(dot)nz>
To: Christopher Kings-Lynne <chris(dot)kings-lynne(at)calorieking(dot)com>
Cc: Martijn van Oosterhout <kleptog(at)svana(dot)org>, Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Static build of psql with readline support
Date: 2006-03-23 02:43:09
Message-ID: 44220B3D.1020803@paradise.net.nz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Christopher Kings-Lynne wrote:
>> To the GP, adding -lncurses (or rather the static equivalent) to your
>> link line should solve it. But if you include any other libraries like
>> ssl or kerberos be prepared to add a lot more.
>
>
> With -lncurses or -lcurses I still can't get this to work. I add it to
> the ${CC} line, right?
>

This is what I used (current 8.2 sources FreeBSD 6.0):

*** Makefile.orig Thu Mar 23 14:37:37 2006
--- Makefile Thu Mar 23 14:40:46 2006
***************
*** 27,32 ****
--- 27,34 ----

FLEXFLAGS = -Cfe

+ CFLAGS += -static
+ LIBS += -lcurses

all: submake-libpq submake-libpgport submake-backend psql

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2006-03-23 02:43:24 On vacation
Previous Message Tom Lane 2006-03-23 02:38:40 Re: Accessing schema data in information schema