mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-28 22:25:32 -04:00
Add compiler flag only if available
This commit is contained in:
parent
47f9fa0235
commit
0865e79d07
1 changed files with 3 additions and 1 deletions
|
|
@ -51,7 +51,9 @@ case "$with_mpich" in
|
|||
|
||||
# workaround for compilation with GCC >= 10, until properly fixed:
|
||||
# https://github.com/pmodels/mpich/issues/4300
|
||||
("${FC}" --version | grep -q 'GNU') && compat_flag="-fallow-argument-mismatch" || compat_flag=""
|
||||
if ("${FC}" --version | grep -q 'GNU'); then
|
||||
("${FC}" --help -v 2>&1 | grep -q 'fallow-argument-mismatch') && compat_flag="-fallow-argument-mismatch" || compat_flag=""
|
||||
fi
|
||||
./configure \
|
||||
--prefix="${pkg_install_dir}" \
|
||||
--libdir="${pkg_install_dir}/lib" \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue