Re: Static build of psql with readline support

From: "Andrew Dunstan" <andrew(at)dunslane(dot)net>
To: <markir(at)paradise(dot)net(dot)nz>
Cc: <chris(dot)kings-lynne(at)calorieking(dot)com>, <kleptog(at)svana(dot)org>, <chriskl(at)familyhealth(dot)com(dot)au>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Static build of psql with readline support
Date: 2006-03-23 03:41:47
Message-ID: 2986.24.211.165.134.1143085307.squirrel@www.dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Mark Kirkwood said:
> 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
>

That might work on FBSD but it doesn't work everywhere - when I tried it on
Linux I got nasty link errors.

cheers

andrew

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2006-03-23 03:50:04 Re: Accessing schema data in information schema
Previous Message Mark Kirkwood 2006-03-23 03:39:45 Re: Static build of psql with readline support