fixed a bug in detecting the underlying mpiCC compiler.
[charm.git] / src / arch / mpi-linux-x86_64 / conv-mach.sh
1
2 CMK_REAL_COMPILER=`mpiCC -show 2>/dev/null | cut -d' ' -f1 `
3 case "$CMK_REAL_COMPILER" in
4 g++) CMK_AMD64="-m64 -fPIC" ;;
5 esac
6
7 CMK_CPP_CHARM="/lib/cpp -P"
8 CMK_CPP_C="mpicc -E"
9 CMK_CC="mpicc $CMK_AMD64 "
10 CMK_CXX="mpiCC $CMK_AMD64 "
11 CMK_CXXPP="mpiCC -E $CMK_AMD64 "
12
13 CMK_SYSLIBS="-lmpich "
14 CMK_LIBS="-lckqt $CMK_SYSLIBS "
15 CMK_LD_LIBRARY_PATH="-Wl,-rpath,$CHARMLIBSO/"
16
17 CMK_NATIVE_CC="gcc $CMK_AMD64 "
18 CMK_NATIVE_LD="gcc $CMK_AMD64 "
19 CMK_NATIVE_CXX="g++ $CMK_AMD64 "
20 CMK_NATIVE_LDXX="g++ $CMK_AMD64 "
21 CMK_NATIVE_LIBS=""
22
23 # fortran compiler 
24 CMK_CF77="f77"
25 CMK_CF90="f90"
26 CMK_F90LIBS="-L/usr/absoft/lib -L/opt/absoft/lib -lf90math -lfio -lU77 -lf77math "
27 CMK_F77LIBS="-lg2c "
28 CMK_MOD_NAME_ALLCAPS=1
29 CMK_MOD_EXT="mod"
30 CMK_F90_USE_MODDIR=1
31 CMK_F90_MODINC="-p"
32
33 CMK_QT='generic64'
34 CMK_RANLIB="ranlib"
35