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: Sat, 2 Feb 2002 17:25:05 -0600
User-agent: Mutt/1.2.5i

On Sat, Feb 02, 2002 at 04:48:18PM -0600, Albert Chin wrote:
> On Sat, Feb 02, 2002 at 03:13:38PM -0500, Thomas Dickey wrote:
> > On Fri, Feb 01, 2002 at 12:43:44AM -0600, Albert Chin wrote:
> > > I am attempting to build a 64-bit version of the ncurses library on
> > > Solaris 8/SPARC using the Sun C compiler. Building the 32-bit version
> > > works fine. However, for the 64-bit version (CFLAGS="-xarch=v9"):
> > 
> > let's back up a moment - why wasn't the "-xarch=v9" seen by the configure
> > script?  If it were, my configure check would have failed to find the
> > chunks of code where FILE members are used.  (Then vsscanf would always
> > return an error, rather than failing to compile).
> 
> Hmm. My initial email was not based on the most recent version of
> ncurses. I just build the latest ncurses library and the 64-bit
> version of the library builds successfully (through the test programs
> do not but that's a minor fix).
> 
> So, does this mean my patch is irrelevant (it's OK if it is).

New patch to fix problems with the 64-bit compile. Need to pass
$CFLAGS to linker in test/* programs as $(CC) is used as the linker.
Else, things like -xarch=v9 don't get passed in.

-- 
albert chin (address@hidden)

-- snip snip
--- test/Makefile.in.orig       Fri Feb  1 19:44:08 2002
+++ test/Makefile.in    Fri Feb  1 19:44:15 2002
@@ -69,7 +69,7 @@
 MATH_LIB       = @MATH_LIB@
 
 LD             = @LD@
-LINK           = @LINK_TESTS@ $(LIBTOOL) $(CC)
+LINK           = @LINK_TESTS@ $(LIBTOOL) $(CC) $(CFLAGS)
 
 LDFLAGS                = @LD_MODEL@ @TEST_ARGS@ @LIBS@ @EXTRA_LIBS@ 
@LOCAL_LDFLAGS@ @LDFLAGS@
 
--- mk-1st.awk.orig     Fri Feb  1 18:48:42 2002
+++ mk-1st.awk  Sat Feb  2 17:10:08 2002
@@ -195,7 +195,7 @@
                                if ( subset == "termlib") {
                                        printf "\t$(MK_SHARED_LIB) $(%s_OBJS) 
$(TINFO_LIST)\n", OBJS
                                } else {
-                                       printf "\t$(MK_SHARED_LIB) $(%s_OBJS) 
$(SHLIB_LIST)\n", OBJS
+                                       printf "\t$(MK_SHARED_LIB) $(%s_OBJS) 
$(SHLIB_LIST) $(LDFLAGS)\n", OBJS
                                }
                                sharedlinks("../lib")
 



reply via email to

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