Add -fPIC flag to compile successfully on some systems

This commit is contained in:
Lorenzo Figini 2022-11-14 18:23:20 +00:00
parent 5ff1d8cd10
commit ddfc5db039

View File

@ -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