From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 84507 invoked by alias); 5 Dec 2018 14:49:46 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 84487 invoked by uid 89); 5 Dec 2018 14:49:45 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: =?ISO-8859-1?Q?No, score=-17.9 required=5.0 tests=BAYES_00,BODY_8BITS,GARBLED_BODY,GIT_PATCH_0,GIT_PATCH_2,GIT_PATCH_3,SPF_HELO_PASS,SPF_PASS,TIME_LIMIT_EXCEEDED autolearn=unavailable version=3.3.2 spammy==d0=b0=d0=bb=d0=b0=d1, =d0=b8=d0=bb=d1, =d0=b7=d0=be=d0=b2, HContent-Transfer-Encoding:8bit?= X-HELO: smtp.polymtl.ca Received: from smtp.polymtl.ca (HELO smtp.polymtl.ca) (132.207.4.11) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 05 Dec 2018 14:49:35 +0000 Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id wB5EnS4m028874 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 5 Dec 2018 09:49:33 -0500 Received: by simark.ca (Postfix, from userid 112) id 750261E74D; Wed, 5 Dec 2018 09:49:28 -0500 (EST) Received: from simark.ca (localhost [127.0.0.1]) by simark.ca (Postfix) with ESMTP id A27021E478; Wed, 5 Dec 2018 09:49:23 -0500 (EST) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Wed, 05 Dec 2018 14:49:00 -0000 From: Simon Marchi To: =?UTF-8?Q?=D0=94=D0=B8=D0=BB=D1=8F=D0=BD_=D0=9F=D0=B0=D0=BB=D0=B0?= =?UTF-8?Q?=D1=83=D0=B7=D0=BE=D0=B2?= Cc: gdb-patches@sourceware.org Subject: Re: Linking gdb with -ltinfow, if libtinfo is not available In-Reply-To: <30919bd86dea123f624ccd1f069aff432622fb6e.camel@aegee.org> References: <30919bd86dea123f624ccd1f069aff432622fb6e.camel@aegee.org> Message-ID: X-Sender: simon.marchi@polymtl.ca User-Agent: Roundcube Webmail/1.3.6 X-IsSubscribed: yes X-SW-Source: 2018-12/txt/msg00053.txt.bz2 On 2018-12-05 02:22, Дилян Палаузов wrote: > See https://sourceware.org/bugzilla/show_bug.cgi?id=23950 for details. > > diff --git a/gdb/configure.ac b/gdb/configure.ac > --- a/gdb/configure.ac > +++ b/gdb/configure.ac > @@ -592,7 +592,7 @@ case $host_os in > esac > > # These are the libraries checked by Readline. > -AC_SEARCH_LIBS(tgetent, [termcap tinfo curses ncursesw ncurses]) > +AC_SEARCH_LIBS(tgetent, [termcap tinfo tinfow curses ncursesw > ncurses]) > > if test "$ac_cv_search_tgetent" = no; then > CONFIG_OBS="$CONFIG_OBS stub-termcap.o" I am not able to test this (since all my systems have a libtinfo.so, which gets picked up), but I think it makes sense. If you have a system where the only ncurses available is configured with: --with-termlib --with-shared --enable-widec you end up with libtinfow.so and no libtinfo.so. Any objections? I can take care of ChangeLog and commit message since it is a very small change, but next time please make sure to follow the checklist [1]. Thanks, Simon [1] https://sourceware.org/gdb/wiki/ContributionChecklist