From 24e99eca316d1b4b256f56e877281d3b5c7a463a Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Wed, 27 Apr 2022 20:31:42 +0200 Subject: [PATCH] Avoid adding -lgfortran with NOFORTRAN --- Makefile.system | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile.system b/Makefile.system index ac60eae5b..1d4ff6da1 100644 --- a/Makefile.system +++ b/Makefile.system @@ -1041,9 +1041,11 @@ FCOMMON_OPT += -frecursive # work around ABI problem with passing single-character arguments FCOMMON_OPT += -fno-optimize-sibling-calls #Don't include -lgfortran, when NO_LAPACK=1 or lsbcc +ifneq ($(NOFORTRAN), 1) ifneq ($(NO_LAPACK), 1) EXTRALIB += -lgfortran endif +endif ifdef NO_BINARY_MODE ifeq ($(ARCH), $(filter $(ARCH),mips64)) ifdef BINARY64