Compile with static libraries with -fPIC for static linkage with Python .so

main
lib 2 years ago
parent 0130991747
commit d6db3a52e5
  1. 16
      cmake-exodus

@ -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"

Loading…
Cancel
Save