From b10edb88b9600baa36c246e63931f06f7b1cf1e0 Mon Sep 17 00:00:00 2001 From: Randy LeVeque Date: Wed, 31 Jul 2013 11:17:30 -0700 Subject: [PATCH] Changed Makefile.common to reset FC=gfortran if make sets it to f77. Addresses issue #45. --- src/Makefile.common | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Makefile.common b/src/Makefile.common index 906f952..2e81cf2 100644 --- a/src/Makefile.common +++ b/src/Makefile.common @@ -11,8 +11,14 @@ INSTALL_PROGRAM ?= $(INSTALL) INSTALL_DATA ?= $(INSTALL) -m 644 # Fortran compiler: FC may be set as an environment variable or in make -# file that 'includes' this one. +# file that 'includes' this one. Otherwise assume gfortran. FC ?= gfortran +ifeq ($(FC),f77) + # make sometimes sets FC=f77 if it is not set as environment variable + # reset to gfortran since f77 will not work. + FC = gfortran +endif + CLAW_FC ?= $(FC) LINK ?= $(CLAW_FC)