From ddfc5db0397face3cf478a0345b9be50cb1f68b4 Mon Sep 17 00:00:00 2001 From: Lorenzo Figini Date: Mon, 14 Nov 2022 18:23:20 +0000 Subject: [PATCH] Add -fPIC flag to compile successfully on some systems --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4bcd163..339a773 100644 --- a/Makefile +++ b/Makefile @@ -66,7 +66,7 @@ GIT_DIRTY ?= $(shell test -n "$$(git status --porcelain)" && echo "-dirty") # Note: can't use ?= for FC because GNU Make defaults to f77 FC = gfortran LD = gfortran -FFLAGS += -O3 -J$(OBJDIR) -I$(INCDIR) -ffree-line-length-none +FFLAGS += -O3 -J$(OBJDIR) -I$(INCDIR) -ffree-line-length-none -fPIC CPPFLAGS += -DREVISION=\"$(GIT_REV)$(GIT_DIRTY)\" -DPREFIX=\"$(PREFIX)\" # Static build options