lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On 29 Jul 2017, at 02:22, Luiz Henrique de Figueiredo <> wrote:

>> Would you be open to considering dlopen()'ing readline? Then you
>> wouldn't have to worry about it actually being installed, you'd just
>> detect it at runtime and use it if it's available.
> Oh, this may open another big can of worms. For instance, which is the
> full path of the to use in dlopen?
> However, this does not solve the problem because lua.c has to call
> readline and cannot detect this at compiel time.
> If you could provide working code for your suggestion, I'd like to see it.

Sorry I'm late to the party, was busy with other things.  I already build with `dlopen` `readline` on FreeBSD.  Patch is attached.



Attachment: lua-5.3.4.patch
Description: Binary data