bug-ncurses
[Top][All Lists]
Advanced

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

RE: Ncurses for mips


From: Thomas Dickey
Subject: RE: Ncurses for mips
Date: Wed, 2 Feb 2005 16:09:38 -0500 (EST)

On Wed, 2 Feb 2005, Vivek wrote:

Soft-mult-div is one of the flags used my cross-compiler and is required. I
don't know why the cross compiler flags are passed to host compiler gcc. I
suppose all the source file should be compiled using my cross compiler.

What may go wrong ?

You need to override the configure script using --with-build-cflags.
From "INSTALL":

    --with-build-cc=XXX
        If cross-compiling, specify a host C compiler, which is needed to
        compile a few utilities which generate source modules for ncurses.
        If you do not give this option, the configure script checks if the
        $BUILD_CC variable is set, and otherwise defaults to gcc or cc.

    --with-build-cflags=XXX
        If cross-compiling, specify the host C compiler-flags.  You might need
        to do this if the target compiler has unusual flags which confuse the
        host compiler.

    --with-build-cppflags=XXX
        If cross-compiling, specify the host C preprocessor-flags.  You might
        need to do this if the target compiler has unusual flags which confuse
        the host compiler.

    --with-build-ldflags=XXX
        If cross-compiling, specify the host linker-flags.  You might need to
        do this if the target linker has unusual flags which confuse the host
        compiler.

    --with-build-libs=XXX
        If cross-compiling, the host libraries.  You might need to do this if
        the target environment requires unusual libraries.

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




reply via email to

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