help-make
[Top][All Lists]
Advanced

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

Re: Cross compiling without ./configure


From: Alberto Luaces
Subject: Re: Cross compiling without ./configure
Date: Fri, 26 Mar 2010 10:47:37 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

mahmoodn writes:

> Hi,
> My host platform is ubuntu x86 and I have the source code of a benchmark and
> want to compile for a solaris target. The source code however does not
> contain any "configure" file. In the solaris I run "uname -a" and get this
> result:
>
> SunOS Abisko 5.9 Generic_118558-34 sun4u sparc SUNW,Sun-Fire
>
> How can I tell the makefile in the host machine to compile t code for the
> target machine? Thanks,

Hi, you need the Solaris cross-compiler. Then, you have to make sure
that it is called from the makefile. It is very common that the name of
the compiler is stored in a varaiable like CC or CXX for the C and C++
compiler. If it is the case, you can simply execute

CC="your_Solaris_C_compiler" CXX="your_Solaris_C++_compiler" make

--
Alberto




reply via email to

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