[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- 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
<lhf@tecgraf.puc-rio.br <mailto:lhf@tecgraf.puc-rio.br>> 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:
http://lua-users.org/lists/lua-l/2010-11/msg00220.html
<http://lua-users.org/lists/lua-l/2010-11/msg00220.html>
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
-lreadline -lncursesw
$ pkgconf --libs readline
-lreadline
Build-systems like CMake, Meson etc. take care of this, too.
BR