From 3dc2428137c89812585ea4e5f6c2dd96f4b20a85 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Mon, 20 Jun 2022 19:30:24 +0200 Subject: [PATCH] no need to link with libgfortran when ONLY_CBLAS --- Makefile.system | 2 ++ 1 file changed, 2 insertions(+) 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