diff -up scalapack-2.0.2/scalapack-2.0.2/Makefile.fedora scalapack-2.0.2/scalapack-2.0.2/Makefile
--- scalapack-2.0.2/scalapack-2.0.2/Makefile.fedora 2014-02-12 11:09:48.585913344 -0500
+++ scalapack-2.0.2/scalapack-2.0.2/Makefile 2014-02-12 11:11:45.726759063 -0500
@@ -49,7 +49,7 @@ PRECISIONS = single double complex compl
all: lib exe example
-lib: blacslib toolslib pblaslib redistlib scalapacklib
+lib: blacslib toolslib pblaslib redistlib scalapacklib shared
exe: blacsexe pblasexe redistexe scalapackexe
@@ -107,3 +107,5 @@ cleanlib:
cleanexample:
( cd EXAMPLE; $(MAKE) clean )
+shared: scalapacklib
+ ( mkdir tmp ; cp $(SCALAPACKLIB) tmp ; cd tmp ; ar x $(SCALAPACKLIB) ; $(CC) -shared -o ../libscalapack.so.2.0.0 *.o *.oo -Wl,-soname=libscalapack.so.2 -lopenblas -L.. -lm -lgfortran ; cd .. )
diff -up scalapack-2.0.2/scalapack-2.0.2/SLmake.inc.fedora scalapack-2.0.2/scalapack-2.0.2/SLmake.inc
--- scalapack-2.0.2/scalapack-2.0.2/SLmake.inc.fedora 2014-02-12 11:19:04.618179216 -0500
+++ scalapack-2.0.2/scalapack-2.0.2/SLmake.inc 2014-02-12 11:19:00.675184482 -0500
@@ -0,0 +1,61 @@
+############################################################################
+#
+# Program: ScaLAPACK
+#
+# Module: SLmake.inc
+#
+# Purpose: Top-level Definitions
+#
+# Creation date: February 15, 2000
+#
+# Modified: October 13, 2011
+#
+# Send bug reports, comments or suggestions to scalapack@cs.utk.edu
+#
+############################################################################
+#
+# C preprocessor definitions: set CDEFS to one of the following:
+#
+# -DNoChange (fortran subprogram names are lower case without any suffix)
+# -DUpCase (fortran subprogram names are upper case without any suffix)
+# -DAdd_ (fortran subprogram names are lower case with "_" appended)
+
+CDEFS = -DAdd_
+
+#
+# The fortran and C compilers, loaders, and their flags
+#
+
+FC = mpif90
+CC = mpicc
+NOOPT = -fPIC
+FCFLAGS = $(RPM_OPT_FLAGS) -fPIC
+CFLAGS = $(RPM_OPT_FLAGS) -fPIC
+CCFLAGS = $(RPM_OPT_FLAGS) -fPIC
+FCLOADER = $(FC)
+CCLOADER = $(CC)
+FCLOADFLAGS = $(FCFLAGS)
+CCLOADFLAGS = $(CCFLAGS)
+
+#
+# The archiver and the flag(s) to use when building archive (library)
+# Also the ranlib routine. If your system has no ranlib, set RANLIB = echo
+#
+
+ARCH = ar
+ARCHFLAGS = cr
+RANLIB = ranlib
+
+#
+# The name of the ScaLAPACK library to be created
+#
+
+SCALAPACKLIB = libscalapack.a
+
+#
+# BLAS, LAPACK (and possibly other) libraries needed for linking test programs
+#
+
+BLASLIB = -lopenblas
+LAPACKLIB = -llapack
+LIBS = $(LAPACKLIB) $(BLASLIB)