Commit 1df32b9b authored by Lorenz Huedepohl's avatar Lorenz Huedepohl

Escape '-module' for Intel 19 / PGI

Some compilers use '-module' to specify the module output directory.
This clashes with libtools -module link option and we have to escape it
parent 5c1ff4fb
Pipeline #43438 failed with stage
in 20 seconds
......@@ -23,6 +23,17 @@ AC_FC_MODULE_FLAG
AC_FC_MODULE_OUTPUT_FLAG
AC_OPENMP
dnl Some compilers use '-module' to specify the module output directory
dnl This clashes with libtools -module link option and we have to escape it
AC_MSG_CHECKING([whether we have to escape '-module' for libtool])
if test x"$FC_MODOUT" = x'-module ' ; then
FC_MODOUT="-Xcompiler $FC_MODOUT -Xcompiler \$(ac_empty)"
FC="\$(top_srcdir)/remove_xcompiler $FC"
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
fi
AC_LANG([C])
AM_PROG_CC_C_O
AC_OPENMP
......
#!/usr/bin/env python
import sys
import os
args = filter(lambda q : q != "-Xcompiler", sys.argv[1:])
os.execvp(args[0], args[0:])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment