diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2007-04-06 15:41:01 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2007-04-06 15:41:01 (GMT) |
commit | 4ba1a7c0090f98e0edbd19c469862c462dca6264 (patch) | |
tree | 645773746bf97886a4cf29bacfc8bfc064afda92 | |
parent | ff13a094b640f86ac9937cfa7e8b08a590a7acce (diff) | |
download | hdf5-4ba1a7c0090f98e0edbd19c469862c462dca6264.zip hdf5-4ba1a7c0090f98e0edbd19c469862c462dca6264.tar.gz hdf5-4ba1a7c0090f98e0edbd19c469862c462dca6264.tar.bz2 |
[svn-r13601] Purpose:
bug fix.
Description:
If a non-existing or empty source file is used with -c option, the
script ended up doing nothing and exit 0--a false success. Changed
code so that it would do compile and end in error.
Also added an acknowledgement that the script is adapted from mpicc of MPICH.
Platform tested:
Kagiso (serial and PP).
-rwxr-xr-x | c++/src/h5c++.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/c++/src/h5c++.in b/c++/src/h5c++.in index 9349ea9..18d01ab 100755 --- a/c++/src/h5c++.in +++ b/c++/src/h5c++.in @@ -226,6 +226,11 @@ for arg in $@ ; do esac done +if test "$dash_c" = "yes" -a "$do_compile" = no -a "$do_link" = no ; then + # -c was specified. Force do_compile on. + do_compile=yes +fi + if test "x$do_compile" = "xyes"; then if test "x$dash_c" != "xyes"; then compile_args="-c $compile_args" |