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

Startseite
Nachricht löschen
Autor: Dmitry V Levin
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

Dmitry V. Levin <ldv@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ldv@???
            Summary|readline needs -lcurses if  |readline may need -lcurses
                   |ncurses is installed        |if ncurses is installed





--- Comment #4 from Dmitry V. Levin <ldv@???> 2011-12-20 11:38:10 ---
(In reply to comment #3)
> This bug is still very valid when linking libpcre only statically.


pcretest is not normally linked with -lreadline statically.

> 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.


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