The solaris machine has no GCC. I want to compile on the x86 host and use the binaries in the target machine. What do you mean by "Solaris cross compiler"? is it a tool that should be used in the host or target machine?
Alberto Luaces wrote: > > 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 > > -- View this message in context: http://old.nabble.com/Cross-compiling-without-.-configure-tp28039536p28040296.html Sent from the Gnu - Make - Help mailing list archive at Nabble.com. _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
