Commit 11d396ed authored by Hendryk Bockelmann's avatar Hendryk Bockelmann
Browse files

keep CC options is MPICC is also set

parent 595c718a
......@@ -173,7 +173,9 @@ AC_DEFUN_ONCE([_AX_PROG_CC_MPI], [
MPICC="$CC"
elif test -n "$CC" && test -n "$MPICC"; then
AC_MSG_WARN([overwriting CC=$MPICC. was former '$CC'])
CC="$MPICC"
dnl extract found options from CC if overriden by MPICC
cc_opts=${CC##* }
CC="$MPICC $cc_opts"
fi
fi
dnl AC_PROG_CC99
......
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