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


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to