OPM/opm-core — pull request #6 by bska (2012-07-10 12:04:23+00:00)
Title: Fix Fall-out From Build-System Boost-Library Clean-up

The Boost-library build fix in commit 6b57a00 produced the unintended consequence of exposing a hidden link-time failure that only presents on systems with fairly old Fortran run-time support libraries. Some of these libraries (e.g., GFortran's `libgfortranbegin' accompanying GFortran 4.1.2) reference a symbol MAIN__ that is used to start the executable.

The Autoconf manual outlines a procedure for dealing with this behaviour (see macros AC_F{77,C}_DUMMY_MAIN in the manual, http://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Fortran-Compiler.html#Fortran-Compiler), but the easiest approach--and one that seems to work perfectly fine in practice on the systems we actually care about--is to simply *not* link to the Fortran run-time support libraries at all. The first part of this patch removes all explicit Fortran library linking from all Makefile.am files affected.

The second part of the patch fixes a latent error that's been present since the project's inception; namely overwriting the `LDFLAGS' user variable when we should be using the AM_LDFLAGS variable intrinsic to Automake.