diff --git a/Makefile.system b/Makefile.system index b1593e8f5..8a62eb3a3 100644 --- a/Makefile.system +++ b/Makefile.system @@ -1042,10 +1042,12 @@ FCOMMON_OPT += -frecursive FCOMMON_OPT += -fno-optimize-sibling-calls #Don't include -lgfortran, when NO_LAPACK=1 or lsbcc ifneq ($(NOFORTRAN), 1) +ifneq ($(NOFORTRAN), 2) ifneq ($(NO_LAPACK), 1) EXTRALIB += -lgfortran endif endif +endif ifdef NO_BINARY_MODE ifeq ($(ARCH), $(filter $(ARCH),mips64)) ifdef BINARY64