bug-ncurses
[Top][All Lists]
Advanced

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

Re: Building 64-bit version of ncurses on Solaris 8


From: Albert Chin
Subject: Re: Building 64-bit version of ncurses on Solaris 8
Date: Fri, 1 Feb 2002 18:47:54 -0600
User-agent: Mutt/1.2.5i

On Fri, Feb 01, 2002 at 07:34:00PM -0500, Thomas Dickey wrote:
> On Fri, Feb 01, 2002 at 06:05:05PM -0600, Albert Chin wrote:
> > What's the best way to conditionally compile the trio files if needed?
> > I plan on placing the source files in ncurses/base. A few ideas:
> 
> The simplest way is to include them from ncurses/base/vsscanf.c -- then
> you have only to modify that file, e.g.,
> 
>       #include <base/triostuff.c>
> 
> But it would be better, I think, to add a configure option & check to
> link against trio.

I'm doing the same thing that ncurses/base/memmove.c does. I just wrap
the three .c files in:
  #if NEED_TRIO
  ...
  #endif

And, in vsscanf.c, I just define the vsscanf function to call
trio_vsscanf.

And, there is an autoconf test for vsnprintf and vsscanf that sets
NEED_TRIO if need be.

One last item. Why don't you add $(LDFLAGS) when creating the shared
library? Trio is dependent on -lm which means ncurses will be as well.
Dunno if you're gonna like this though.

-- 
albert chin (address@hidden)



reply via email to

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