This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Check for ncursesw first when searching for "tgetent"
- From: Simon Marchi <simark at simark dot ca>
- To: Sergio Durigan Junior <sergiodj at redhat dot com>, GDB Patches <gdb-patches at sourceware dot org>
- Cc: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Date: Mon, 12 Feb 2018 23:58:41 -0500
- Subject: Re: [PATCH] Check for ncursesw first when searching for "tgetent"
- Authentication-results: sourceware.org; auth=none
- References: <20180131210430.23787-1-sergiodj@redhat.com>
On 2018-01-31 04:04 PM, Sergio Durigan Junior wrote:
> Commit 5007d765ae09c10c7f3b18bb16841b9d2d59e181 ("Allow linking GDB
> with ncursesw") modified our configure.ac and included the check for
> "ncursesw" when searching for "waddstr". However, there's one more
> place where we should check for "ncursesw" first:
>
> AC_SEARCH_LIBS(tgetent, [termcap tinfo curses ncursesw ncurses])
>
> This patch changes the order of the libraries to be searched when
> looking for "tgetent", and puts "ncursesw" before "curses ...".
>
> This is another patch we carry on Fedora GDB.
I think it makes sense, but can you expand on why this is needed?
Thanks,
Simon