fix gnu compilation error on Blue Gene/Q
[charm.git] / src / arch / elan-linux / conv-mach.sh
1 CMK_CPP_CHARM="/lib/cpp -P"
2 CMK_CPP_C="gcc -E"
3 CMK_CC="gcc "
4 CMK_CXX="g++ "
5 CMK_CXXPP="$CMK_CXX -x c++ -E "
6 CMK_RANLIB="ranlib"
7 CMK_LIBS="-lckqt -lelan"
8 #CMK_LD="$CMK_CC -Wl,--allow-multiple-definition "
9 #CMK_LDXX="$CMK_CXX -Wl,--allow-multiple-definition "
10 CMK_LD="$CMK_CC "
11 CMK_LDXX="$CMK_CXX "
12 CMK_LD_SHARED="-shared"
13 CMK_LD_LIBRARY_PATH="-Wl,-rpath,$CHARMLIBSO/"
14 CMK_XIOPTS=""
15 CMK_QT="i386-gcc"
16
17 # fortran compiler Absoft or gnu f95
18 CMK_CF77="g77 "
19 CMK_F77LIBS="-lg2c "
20 CMK_CF90=`which f90 2>/dev/null`
21 if test -n "$CMK_CF90"
22 then
23 # absoft
24   CMK_CF90_FIXED="$CMK_CF90 -W132 "
25   CMK_F90LIBS="-L/usr/absoft/lib -L/opt/absoft/lib -lf90math -lfio -lU77 -lf77math "
26   CMK_F90_USE_MODDIR=1
27   CMK_F90_MODINC="-p"
28 else
29 # gnu f95
30   CMK_CF90=`which f95 2>/dev/null`
31   if test -n "$CMK_CF90"
32   then
33     CMK_FPP="/lib/cpp -P -CC"
34     CMK_CF90="$CMK_CF90 -fpic -fautomatic -fdollar-ok "
35     CMK_CF90_FIXED="$CMK_CF90 -ffixed-form "
36     CMK_F90LIBS="-lgfortran "
37     CMK_F90_USE_MODDIR=1
38     CMK_F90_MODINC="-I"
39   fi
40 fi