bug-ncurses
[Top][All Lists]
Advanced

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

Re: bad CC usage when cross.compiling


From: Thomas Dickey
Subject: Re: bad CC usage when cross.compiling
Date: Fri, 17 Jun 2005 07:34:04 -0400 (EDT)

On Fri, 17 Jun 2005, Daniel Stenberg wrote:

(I'm not subscribed to any ncurses-related list)

GNU ncurses 5.4

When I build ncurses crosscompiled, it clearly confuses matters and the ncurses/Makefile tries to build make_keys and make_hash with the compiler for target. (BUILD_CC is set to be CC).

Command line used:

./configure --target=arm-unknown-linux-gnu --host=arm-unknown-linux-gnu --build=i686-pc-linux-gnu && make

I worked around the problem for now by setting BUILD_CC = gcc in ncurses/Makefile.

Of course I could be severly confused too...

I could be too, but the (few) times I've seen any discussion of this on
the autoconf mailing list, it agrees with my impression.  autoconf isn't
designed to handle this.

You can use the --with-build-cc configure option to tell the configure
script explicitly what to set BUILD_CC to (as well as related stuff
normally not needed since it's using the default C runtime).

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

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