Commit f4aece79 authored by Lorenz Huedepohl's avatar Lorenz Huedepohl
Browse files

Workaround for PGI compiler

PGI's compiler wants


as the flag to specify the module output directory. Sadly, this is also
a libtool argument, resulting in much sorrow.

Thus, we have to escape -module by prefixing it with -Xcompiler. Sadly
libtool is not used everywhere by automake, thus we have to remove it
again in those cases were it would be passed to the compiler and cause
sorrow there.

Sad story. But with a happy ending?
parent 8e36e4f6
This diff is collapsed.
...@@ -1300,6 +1300,20 @@ else ...@@ -1300,6 +1300,20 @@ else
fi fi
dnl PGI compiler uses -module to specify module output
dnl directory. This clashes with libtools -module link option
dnl => escape it for libtool with -Xcompiler -module
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"
if test "${can_compile_avx}" = "no" ; then if test "${can_compile_avx}" = "no" ; then
#!/usr/bin/env python
import sys
import os
args = filter(lambda q : q != "-Xcompiler", sys.argv[1:])
os.execvp(args[0], args[0:])
Supports Markdown
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