Skip to content

Commit

Permalink
Add fPIC option
Browse files Browse the repository at this point in the history
  • Loading branch information
Naoki MORITA committed Feb 22, 2023
1 parent 6f04414 commit 6df939c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#> monolis Makefile

FC = mpif90
FFLAGS = -O2 -mtune=native -march=native -std=legacy -Wno-missing-include-dirs
FFLAGS = -O2 -fPIC -mtune=native -march=native -std=legacy -Wno-missing-include-dirs

CC = mpic++
CFLAGS = -O2
CFLAGS = -O2 -fPIC

MOD_DIR = -J ./include

Expand All @@ -27,9 +27,9 @@ ifdef FLAGS

ifeq ($(findstring INTEL, $(DFLAGS)), INTEL)
FC = mpiifort
FFLAGS = -O2 -align array64byte
FFLAGS = -O2 -fPIC -align array64byte
CC = mpiicc
CFLAGS = -O2 -no-multibyte-chars
CFLAGS = -O2 -fPIC -no-multibyte-chars
MOD_DIR = -module ./include
endif

Expand Down

0 comments on commit 6df939c

Please sign in to comment.