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

From Martijn van Oosterhout
Subject Re: Static build of psql with readline support
Date
Msg-id 20060323195018.GB17969@svana.org
Whole thread Raw
In response to Re: Static build of psql with readline support  (Christopher Kings-Lynne <chris.kings-lynne@calorieking.com>)
List pgsql-hackers
On Thu, Mar 23, 2006 at 10:31:24AM +0800, 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?

I'm not sure what controls it, but it's quite possible -lcurses tries
to do a dynamic link again, you may need to specify the path to the .a
file.

Note, make sure you actually have the static version installed, not all
distributions come with static versions these days...

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

pgsql-hackers by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: Where does the time go?
Next
From: Tom Lane
Date:
Subject: Re: Where does the time go?