FWIW: this looks like Python code, not a Makefile. Does your build
system use python?
If so, I *suspect* that changing the "CXX" line to contain mpiCC
instead of g++ should do the trick. As long as mpiCC is using g++ as a
back-end compiler (which you can verify by running "mpiCC -showme"),
the rest of your flags should be fine (although on most modern g++
installations, you shouldn't need -lstdc++, I think...?).
On Jun 14, 2005, at 4:40 PM, nithu wrote:
> Hi,
>
> i'm trying to change the compiler of a software from gcc to mpiCC. i
> tried changing the code in the make file, to make it accept mpiCC in
> place of gcc. A small part of the make file is
>
> import string
> import getopt
> prefix=os.environ['ECELL3_PREFIX']
> exec_prefix=prefix
> libdir=exec_prefix + os.sep + 'lib'
> CXX='g++'
> ORIG_CXXFLAGS="-O2 -g -pipe -march=i386 -mcpu=i686"
> LDADD='-lstdc++'
> SHLEXT='.so'
> CXXSUFFIX='.cpp'
> CXXFLAGS = os.environ.get('CXXFLAGS','')
> VERBOSE = False
>
> i would like to know where and what kind of changes i should make to
> force it to change from gcc compiler to mpiCC compiler.
>
> Thanks,
> NG
>
> Do you Yahoo!?
> Yahoo! Mail - Helps protect you from nasty
> viruses._______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
--
{+} Jeff Squyres
{+} jsquyres_at_[hidden]
{+} http://www.lam-mpi.org/
|