28c1e2ac143825d50c468933a74d2fffd01b4bab
[charm.git] / src / arch / mpi-darwin-ppc / conv-mach.sh
1 # preprocess mpicxx which include mpich before ampi
2 # this default conv-mach does not work with linking ampi
3
4 CMK_CPP_CHARM="/lib/cpp -P"
5 CMK_CPP_C="mpicc -E"
6 OPTS_CC="$OPTS_CC -Wno-long-double -dynamic -fno-common "
7 CMK_CC="mpicc -fPIC "
8 #CMK_CXX="/private/automount/home/gzheng/csar/genx/build_charm_mpi/mpicxx -Wno-long-double -fPIC -dynamic -fno-common "
9 OPTS_CXX="$OPTS_CXX -Wno-long-double -dynamic -fno-common "
10 CMK_CXX="mpicxx -fPIC "
11 CMK_CXXPP="mpicxx -E "
12 OPTS_LD="$OPTS_LD -multiply_defined suppress -flat_namespace "
13 CMK_LD="$CMK_CC "
14 OPTS_LDXX="$OPTS_LDXX -multiply_defined suppress -flat_namespace "
15 CMK_LDXX="$CMK_CXX "
16 CMK_LIBS="-lckqt -lmpich -lpmpich"
17
18 CMK_QT="generic-light"
19
20 # Assumes IBM xlf90 compiler:
21 CMK_CF77="f77 -qnocommon -qextname -qthreaded "
22 CMK_CF90="f90 -qnocommon -qextname -qthreaded "
23 CMK_CF90_FIXED="xlf90 -qnocommon -qextname -qthreaded -qsuffix=f=f"
24 CMK_F90LIBS="-L/opt/ibmcmp/xlf/8.1/lib -lxlf90 -lxlopt -lxl -lxlfmath"
25
26 # native compilers
27 CMK_NATIVE_LIBS=""
28 CMK_NATIVE_CC="gcc"
29 CMK_NATIVE_LD="$CMK_NATIVE_CC"
30 CMK_NATIVE_CXX="g++"
31 CMK_NATIVE_LDXX="$CMK_NATIVE_CXX"
32
33 # setting for shared lib
34 # need -lstdc++ for c++ reference, and it needs to be put at very last
35 # of command line.
36 # need 10.3 in this Mac environment varaible
37 export MACOSX_DEPLOYMENT_TARGET=10.3
38 CMK_SHARED_SUF="dylib"
39 CMK_LD_SHARED=" -dynamic -dynamiclib -flat_namespace -undefined dynamic_lookup "
40 CMK_LD_SHARED_LIBS="-lstdc++"
41 CMK_LD_SHARED_ABSOLUTE_PATH=true
42
43 CMK_NO_DL=true
44 CMK_RANLIB="ranlib -s"