[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: CMake support for Lua
- From: Markus Schaaf <markuschaaf@...>
- Date: Mon, 20 Mar 2023 20:44:25 +0100
Am 20.03.23 um 18:58 schrieb Gé Weijers:
On Mon, Mar 20, 2023 at 2:41 AM Luiz Henrique de Figueiredo
<email@example.com <mailto:firstname.lastname@example.org>> wrote:
> when I had to recompile 5.4.4 with readline I found the
new GNU readline depends on termcap.
Are you sure? Where is this documented?
Doesn't it depend on how readline was built?
I hope we're not back to this discussion:
If you link libreadline as a dynamic library the dependency does
not have to be specified, because the dynamic loader will load
libreadline.so's dependencies automatically, but if you link it
statically you will have to specify the libncurses library,
because the linker can't figure it out from libreadline.a's contents.
That is what pkgconf is for:
$ pkgconf --libs --static readline
$ pkgconf --libs readline
Build-systems like CMake, Meson etc. take care of this, too.