summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/linux-gnulibc110
1 files changed, 8 insertions, 2 deletions
diff --git a/config/linux-gnulibc1 b/config/linux-gnulibc1
index 26a0c3a..8f04cf0 100644
--- a/config/linux-gnulibc1
+++ b/config/linux-gnulibc1
@@ -22,8 +22,14 @@
# The default compiler is `gcc'.
if test -z "$CC"; then
- CC=gcc
- CC_BASENAME=gcc
+ if test "X-$enable_parallel" = "X-yes"; then
+ # default to use mpicc which is the defacto MPI compiler name
+ CC=mpicc
+ CC_BASENAME=mpicc
+ else
+ CC=gcc
+ CC_BASENAME=gcc
+ fi
fi
# Figure out GNU C compiler flags