Skip to content

Commit

Permalink
Merge branch 'develop' into bugfix/gnu-container
Browse files Browse the repository at this point in the history
  • Loading branch information
mmiesch committed May 28, 2021
2 parents 7e1b383 + 993870b commit bff7414
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion buildscripts/libs/build_lapack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ url="https://github.com/Reference-LAPACK/lapack/archive/$tarball"

# Add CMAKE_INSTALL_LIBDIR to make sure it will be installed under lib not lib64
cmake -H. -Bbuild -DCMAKE_INSTALL_PREFIX=$prefix -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_Fortran_COMPILER=$SERIAL_FC -DCMAKE_Fortran_FLAGS=$FCFLAGS -DBUILD_SHARED_LIBS=ON
-DBUILD_SHARED_LIBS=ON -DCMAKE_Fortran_COMPILER=$SERIAL_FC -DCMAKE_Fortran_FLAGS=$FCFLAGS
cd build
VERBOSE=$MAKE_VERBOSE make -j${NTHREADS:-4}
[[ $MAKE_CHECK =~ [yYtT] ]] && make check
Expand Down
9 changes: 8 additions & 1 deletion buildscripts/libs/build_mpi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export CXX=$SERIAL_CXX
export FC=$SERIAL_FC

export FFLAGS+=" -fPIC"
[[ -n $FC_GFORTRAN_10 ]] && export FFLAGS+=" -fallow-argument-mismatch -fallow-invalid-boz"
export CFLAGS+=" -fPIC"
export CXXFLAGS+=" -fPIC"
export FCFLAGS=${FFLAGS}
Expand Down Expand Up @@ -82,6 +81,14 @@ case "$name" in
else
extra_conf="--enable-fortran --enable-cxx"
fi
# gfortran-10+ compatibility flags
if [[ -n $FC_GFORTRAN_10 ]]; then
# Use these flags to build MPICH itself, but don't add to WRAPPER_FCFLAGS
export MPICHLIB_FCFLAGS+=" -fallow-argument-mismatch -fallow-invalid-boz"
export MPICHLIB_FFLAGS=${MPICHLIB_FCFLAGS}
# Disable check for mismatched args flags in confdb/aclocal_f77.ac
export pac_cv_prog_f77_mismatched_args=yes
fi
[[ -n $HWLOC_ROOT ]] && extra_conf+=" --with-hwloc-prefix=${HWLOC_ROOT}"
;;
* )
Expand Down

0 comments on commit bff7414

Please sign in to comment.