Re: cross compile with ./configure



On Tue, 2 Jun 2009 14:15:04 +0000 (UTC), Atilla <someone@xxxxxxxxxxxxx> wrote:
Dear c.o.l.embedded
I downloaded source of lrzsz and want to cross compile it. How do i make
gnu build system understand this?
./configure CROSS_COMPILE=arm-unknown-linux-gnu-
doesn't work.
Do i need to find a way to handle everything by hand? Source tree doesn't
seem complicated.

did you try ./configure --help ?

f there was a CROSS_COMPILE option, it would be preceded with --, for example:
--host=HOST cross-compile to build programs to run on HOST [BUILD]


Typically you can use the following environmental variables
CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
nonstandard directory <lib dir>
LIBS libraries to pass to the linker, e.g. -l<library>
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
you have headers in a nonstandard directory <include dir>
CPP C preprocessor
CXX C++ compiler command
CXXFLAGS C++ compiler flags
CXXCPP C++ preprocessor

--host=HOST cross-compile to build programs to run on HOST [BUILD]
.



Relevant Pages

  • Re: cross compile with ./configure
    ... you have headers in a nonstandard directory ... CXXFLAGS C++ compiler flags ... checking for gcc... ...
    (comp.os.linux.embedded)
  • Re: Floating point performance of UNIX workstations.
    ... tweaking any compiler flags or anything. ... that is, of course, an old-school alpha, 21064 at 175 MHz. ... > gcc generated code with the code generated by the Digital compilers. ... > might be a good set of compiler flags to try. ...
    (comp.unix.tru64)
  • Re: Floating point performance of UNIX workstations.
    ... tweaking any compiler flags or anything. ... that is, of course, an old-school alpha, 21064 at 175 MHz. ... > gcc generated code with the code generated by the Digital compilers. ... > might be a good set of compiler flags to try. ...
    (comp.sys.dec)
  • Re: Interesting results in speed comparison with C++
    ... I I change my code to use a 64 bit loop counter instead ... I don't think the long operations are faster than the int operations. ... This is guesswork as long as the OP doesn't post the whole code and the compiler flags used to compile he programs. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Are struct members are also padded?
    ... )>Barry Schwarz wrote: ... )>)>Your compiler with default compiler flags is not a conforming C ... )>) the members of the struct in question to have a size greater than 1. ...
    (comp.lang.c)