lua-users home
lua-l archive

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


On Wed, Aug 2, 2017 at 5:03 PM, Duane Leslie <parakleta@darkreality.org> wrote:
> On 29 Jul 2017, at 02:22, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> 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 readline.so 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.
>
> Regards,
>
> Duane.

Thanks for this little gem!