Re: Static build of psql with readline support - Mailing list pgsql-hackers

From Mark Kirkwood
Subject Re: Static build of psql with readline support
Date
Msg-id 44220B3D.1020803@paradise.net.nz
Whole thread Raw
In response to Static build of psql with readline support  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Responses Re: Static build of psql with readline support  ("Andrew Dunstan" <andrew@dunslane.net>)
List 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



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Accessing schema data in information schema
Next
From: Bruce Momjian
Date:
Subject: On vacation