Add -fPIC flag to compile successfully on some systems
This commit is contained in:
parent
5ff1d8cd10
commit
ddfc5db039
2
Makefile
2
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
|
||||
|
Loading…
Reference in New Issue
Block a user