diff options
author | Bill Wendling <wendling@ncsa.uiuc.edu> | 2003-04-24 21:08:43 (GMT) |
---|---|---|
committer | Bill Wendling <wendling@ncsa.uiuc.edu> | 2003-04-24 21:08:43 (GMT) |
commit | 0c936cb87645f03b88801d42f7080445101b22e0 (patch) | |
tree | 32886da9bdbb378496ca23f077aaee2b2d6caa13 /fortran/acsite.m4 | |
parent | 57c41e622b4123f983b6a86c982f9bbf7bdb3373 (diff) | |
download | hdf5-0c936cb87645f03b88801d42f7080445101b22e0.zip hdf5-0c936cb87645f03b88801d42f7080445101b22e0.tar.gz hdf5-0c936cb87645f03b88801d42f7080445101b22e0.tar.bz2 |
[svn-r6748] Purpose:
Bug Fix
Description:
In parallel mode, the MPI libraries were being added to the LDFLAGS
variable instead of the LIBS variable. This was playing havoc with
the h5fc script (the order you specify libraries is important to some
compilers).
Solution:
The AC_CHECK_FLIB macro was placing these libraries into the LDFLAGS
instead of LIBS, which is where they should have gone. Replaced
LDFLAGS with LIBS in that case.
Platforms tested:
Modi4 (Parallel & Fortran)
Arabica (Fortran)
Verbena (Fortran, no C++ since it's not affected)
Ran "make check-install" after installation...
Misc. update:
Diffstat (limited to 'fortran/acsite.m4')
-rw-r--r-- | fortran/acsite.m4 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fortran/acsite.m4 b/fortran/acsite.m4 index 74da0dc..46f69f9 100644 --- a/fortran/acsite.m4 +++ b/fortran/acsite.m4 @@ -358,15 +358,15 @@ cat >conftest.$ac_ext <<EOF EOF if test -n "$1"; then - saved_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS -l$1" + saved_LIBS="$LIBS" + LIBS="$LIBS -l$1" fi if AC_TRY_EVAL(ac_compile) && AC_TRY_EVAL(ac_link); then : [$3] else - LDFLAGS="$saved_LDFLAGS" + LIBS="$saved_LIBS" [$4] fi cd .. |