bug-ncurses
[Top][All Lists]
Advanced

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

cross-compiling, gcc-3.3, and --with-build-cc


From: Dan Kegel
Subject: cross-compiling, gcc-3.3, and --with-build-cc
Date: Tue, 26 Aug 2003 23:17:22 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624

ncurses-5.3 seems to be smart about not using strstream,
but this fails when you specify a cross-compiler with --build-cc
That means that even ncurses-5.3 can run into the dreaded
"../c++/cursesw.h:40:23: strstream.h: No such file or directory"
error.  Here's how I tested:

1. Configure ncurses-5.3, specifying the build cc:
 ../ncurses-5.3/configure  
--with-build-cc=/opt/cegl-2.0/powerpc-750-linux-gnu/gcc-3.3.1-glibc-2.3.2/bin/powerpc-750-linux-gnu-gcc
 --target=powerpc-750-linux-gnu
2. Examine the resulting config.status for HAVE_STRSTR.
3. Note that HAVE_STRSTR is defined even though gcc-3.3.1
doesn't define it.  Compiling will fail.

Same results even after applying the ncurses-5.3-20030719-patch.sh.bz2
rollup patch.

Seems to me the --with-build-cc option doesn't affect autoconf tests.
Also, there's no way to specify the c++ compiler to use with --with-build-cxx, 
I think.
I gather the "right" way to configure ncurses is to override CC and HOSTCC
on the commandline, and ignore the --with-build-cc option.

Comments?  Did I miss something?
- Dan

--
Dan Kegel
http://www.kegel.com
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045





reply via email to

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