[pcre-dev] [Bug 997] readline may need -lcurses if ncurses i…

Startseite
Nachricht löschen
Autor: Alan Hourihane
Datum:  
To: pcre-dev
Alte Treads: [pcre-dev] [Bug 997] New: readline needs -lcurses if ncurses is installed
Betreff: [pcre-dev] [Bug 997] readline may need -lcurses if ncurses is installed
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=997




--- Comment #5 from Alan Hourihane <alanh@???> 2011-12-20 14:53:42 ---
(In reply to comment #4)
> (In reply to comment #3)
> > This bug is still very valid when linking libpcre only statically.
>
> pcretest is not normally linked with -lreadline statically.


True, but when using...

--enable-pcretest-libreadline

it does, and the patch integrates into that option.

> > Attached is a patch I'm using which works around the problem, and implements
> > what the README suggests.
>
> It will not help those who link libreadline with other terminfo providers like
> -ltinfo.
> A portable way to implement this check would be actually attempting -lreadline
> linking, and, if that fails, try to link -lreadline along with other terminfo
> provideres.


True, it could be extended for other providers, but I don't have any of the
other providers installed, so unsure how to test unless you know of an easy fix
to the patch ?


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email