|
|
|
@ -73,8 +73,8 @@ then |
|
|
|
|
CXX=g++ |
|
|
|
|
CC=gcc |
|
|
|
|
FC=gfortran |
|
|
|
|
CFLAGS="-Wall -Wunused -pedantic -std=c11" |
|
|
|
|
CXXFLAGS="-Wall -Wunused -pedantic" |
|
|
|
|
CFLAGS="-Wall -Wunused -pedantic -std=c11 -fPIC" |
|
|
|
|
CXXFLAGS="-Wall -Wunused -pedantic -fPIC" |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
if [ "$COMPILER" == "gnubrew" ] |
|
|
|
@ -83,8 +83,8 @@ then |
|
|
|
|
CXX=g++-${VER} |
|
|
|
|
CC=gcc-${VER} |
|
|
|
|
FC=gfortran-${VER} |
|
|
|
|
CFLAGS="-Wall -Wunused -pedantic -std=c11" |
|
|
|
|
CXXFLAGS="-Wall -Wunused -pedantic" |
|
|
|
|
CFLAGS="-Wall -Wunused -pedantic -std=c11 -fPIC" |
|
|
|
|
CXXFLAGS="-Wall -Wunused -pedantic -fPIC" |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
if [ "$COMPILER" == "gnumacport" ] |
|
|
|
@ -93,8 +93,8 @@ then |
|
|
|
|
CXX=g++-mp-${VER} |
|
|
|
|
CC=gcc-mp-${VER} |
|
|
|
|
FC=gfortran-mp-${VER} |
|
|
|
|
CFLAGS="-Wall -Wunused -pedantic -std=c11" |
|
|
|
|
CXXFLAGS="-Wall -Wunused -pedantic" |
|
|
|
|
CFLAGS="-Wall -Wunused -pedantic -std=c11 -fPIC" |
|
|
|
|
CXXFLAGS="-Wall -Wunused -pedantic -fPIC" |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
if [ "$COMPILER" == "clangmacport" ] |
|
|
|
@ -128,8 +128,8 @@ then |
|
|
|
|
CXX=icpc |
|
|
|
|
CC=icc |
|
|
|
|
FC=ifort |
|
|
|
|
CFLAGS="-Wall -Wunused" |
|
|
|
|
CXXFLAGS="-Wall -Wunused" |
|
|
|
|
CFLAGS="-Wall -Wunused -fPIC" |
|
|
|
|
CXXFLAGS="-Wall -Wunused -fPIC" |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
# When building: "scan-build make -j8" |
|
|
|
|