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: Thomas Dickey
Subject: Re: Determine when to use --enable-widec?
Date: Thu, 30 May 2019 19:14:59 -0400
User-agent: Mutt/1.5.23 (2014-03-12)

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

> Or should I aim for the negative case. If I don't find
> /usr/lib/libncurses.so, then I should use --enable-widec.

it could be in /usr/local/lib

> The reason I bring the negative case is, some platforms are going to
> be a tab bit unusual, and I'd like a sane default. Solaris is probably
> one of those platforms with .../lib/32/ and .../lib/64 directories.

Solaris may have that under /opt

-- 
Thomas E. Dickey <address@hidden>
https://invisible-island.net
ftp://ftp.invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

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