AMPI: Add fsglobals (filesystem) and pipglobals (Process-in-Process) privatization...
[charm.git] / src / arch / mpi-darwin-x86_64 / conv-mach.sh
1 . $CHARMINC/cc-mpiopts.sh
2
3 CMK_MACOSX=1
4
5 CMK_DEFS="$CMK_DEFS -mmacosx-version-min=10.7 -D_DARWIN_C_SOURCE"
6
7 CMK_AMD64="-dynamic -fPIC -fno-common -Wno-deprecated-declarations"
8
9 CMK_CC="$MPICC "
10 CMK_CXX="$MPICXX "
11
12 CMK_CPP_C_FLAGS="$CMK_CPP_C_FLAGS"
13 CMK_CC_FLAGS="$CMK_CC_FLAGS $CMK_AMD64"
14
15 CMK_CLANG_CXX_FLAGS="-stdlib=libc++"
16 CMK_REAL_COMPILER=`$MPICXX -show 2>/dev/null | cut -d' ' -f1 `
17 case "${CMK_REAL_COMPILER##*/}" in
18   gcc|g++|gcc-*|g++-*)
19     CMK_CXX_FLAGS="$CMK_CXX_FLAGS $CMK_AMD64"
20     CMK_COMPILER='gcc'
21     ;;
22   clang|clang++|clang-*|clang++-*)
23     CMK_CXX_FLAGS="$CMK_CXX_FLAGS $CMK_AMD64 $CMK_CLANG_CXX_FLAGS"
24     CMK_COMPILER='clang'
25     ;;
26 esac
27
28 CMK_XIOPTS=""
29
30 CMK_NATIVE_CC='clang'
31 CMK_NATIVE_LD='clang'
32 CMK_NATIVE_CXX='clang++'
33 CMK_NATIVE_LDXX='clang++'
34 CMK_NATIVE_LIBS=""
35
36 CMK_NATIVE_CC_FLAGS="$CMK_GCC64"
37 CMK_NATIVE_LD_FLAGS="$CMK_GCC64"
38 CMK_NATIVE_CXX_FLAGS="$CMK_GCC64 -stdlib=libc++"
39 CMK_NATIVE_LDXX_FLAGS="$CMK_GCC64 -stdlib=libc++"
40
41 CMK_CF90=`which f95 2>/dev/null`
42 if test -n "$CMK_CF90"
43 then
44     . $CHARMINC/conv-mach-gfortran.sh
45 else
46     CMK_CF77="g77 "
47     CMK_CF90="f90 "
48     CMK_CF90_FIXED="$CMK_CF90 -W132 "
49     CMK_F90LIBS="-lf90math -lfio -lU77 -lf77math "
50     CMK_F77LIBS="-lg2c "
51     CMK_F90_USE_MODDIR=1
52     CMK_F90_MODINC="-p"
53 fi
54
55 # setting for shared lib
56 CMK_SHARED_SUF="dylib"
57 CMK_LD_SHARED=" -dynamic -dynamiclib -undefined dynamic_lookup "
58 CMK_LD_SHARED_ABSOLUTE_PATH=true