bug-ncurses
[Top][All Lists]
Advanced

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

Re: Determine when to use --enable-widec?


From: Jeffrey Walton
Subject: Re: Determine when to use --enable-widec?
Date: Thu, 30 May 2019 20:06:43 -0400

On Thu, May 30, 2019 at 7:15 PM Thomas Dickey <address@hidden> wrote:
>
> On Thu, May 30, 2019 at 05:39:23AM -0400, Jeffrey Walton wrote:
> > On Thu, May 30, 2019 at 5:30 AM Thomas Dickey <address@hidden> wrote:
> > >
> > > On Wed, May 29, 2019 at 11:20:03PM -0400, Jeffrey Walton wrote:
> > > > Hi Everyone,
> > > >
> > > > Forgive my ignorance... How can I determine whether I should build a
> > > > narrow or wide version of Ncurses? That is, when should I use
> > > > --enable-widec?
> > > >
> > > > My use case is updating Ncurses on old distros and distros which
> > > > charge for updates. I use old distros for their old compilers and
> > > > runtimes. I prefer to supply the same as the distro provided.
> > >
> > > generally "ldd" shows the library pathname.  If it shows "ncursesw",
> > > that's widec.  Some rename the library, but "nm" (or "nm -D") generally
> > > show the symbols.  If any have "_wch", that's widec, for instance.
> > >
> > > (there's other cases as well, but that's the simple ones)
> >
> > Thanks Thomas.
> >
> > So if I find, say, /usr/lib/libncursesw.so, then I should use
> > --enable-widec. Does that sound about correct?
>
> yes

Thanks again Thomas. One last question... On Fedora 29 x86_64, what
does this mean:

$ find /usr/lib64 -name 'ncurses*.*'
/usr/lib64/pkgconfig/ncursesw.pc
/usr/lib64/pkgconfig/ncurses.pc
/usr/lib64/pkgconfig/ncurses++w.pc
/usr/lib64/pkgconfig/ncurses++.pc

Do the Fedora folks build both?

Or maybe this is an artifact of me using PKG_CONFIG_PATH instead of
PKG_CONFIG_LIBDIR?

Jeff



reply via email to

[Prev in Thread] Current Thread [Next in Thread]