summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2011-02-07 19:46:46 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2011-02-07 19:46:46 (GMT)
commitd4708e35ab8b2fba8552d6b9123df8b6e8d8b39c (patch)
tree8a75a64898153364ce8631f98bd151f9df117528
parent5edf33586ff6cbe3fa82318c1e525bd9fee9fd35 (diff)
downloadhdf5-d4708e35ab8b2fba8552d6b9123df8b6e8d8b39c.zip
hdf5-d4708e35ab8b2fba8552d6b9123df8b6e8d8b39c.tar.gz
hdf5-d4708e35ab8b2fba8552d6b9123df8b6e8d8b39c.tar.bz2
[svn-r20058] Changed Linux system to use mpicc as the default parallel C compiler.
mpif90 is already the default parallel Fortran if mpicc is the C compiler. Tested: Jam (serial and parallel). No need for committest since this change is limited to Linux system.
-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