Skip to content

Instantly share code, notes, and snippets.

@dawidd6
Last active December 2, 2019 11:52
Show Gist options
  • Save dawidd6/09f831daf608eb6e07cc80286b483030 to your computer and use it in GitHub Desktop.
Save dawidd6/09f831daf608eb6e07cc80286b483030 to your computer and use it in GitHub Desktop.
diff --git a/Make.inc/Makefile.inc.generic.SEQ b/Make.inc/Makefile.inc.generic.SEQ
index cf541f1..927ae1c 100644
--- a/Make.inc/Makefile.inc.generic.SEQ
+++ b/Make.inc/Makefile.inc.generic.SEQ
@@ -94,24 +94,21 @@ IORDERINGSC = $(IMETIS) $(IPORD) $(ISCOTCH)
PLAT =
# Library extension, + C and Fortran "-o" option
# may be different under Windows
-LIBEXT = .a
+LIBEXT = .so
OUTC = -o
OUTF = -o
# RM : remove files
RM = /bin/rm -f
-# CC : C compiler
-CC = cc
# FC : Fortran 90 compiler
-FC = f90
+FC = gfortran
# FL : Fortran linker
-FL = f90
+FL = $(FC)
# AR : Archive object in a library
# keep a space at the end if options have to be separated from lib name
AR = ar vr
# RANLIB : generate index of an archive file
# (optionnal use "RANLIB = echo" in case of problem)
-RANLIB = ranlib
-#RANLIB = echo
+RANLIB = echo
# DEFINE HERE YOUR LAPACK LIBRARY
@@ -143,8 +140,8 @@ LIBOTHERS = -lpthread
CDEFS = -DAdd_
#COMPILER OPTIONS
-OPTF = -O
-OPTC = -O -I.
+OPTF = -fPIC -O
+OPTC = -fPIC -O -I.
OPTL = -O
#Sequential:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment