2c4cfd
diff -up lapack-3.9.0/INSTALL/make.inc.gfortran.shared lapack-3.9.0/INSTALL/make.inc.gfortran
2c4cfd
--- lapack-3.9.0/INSTALL/make.inc.gfortran.shared	2019-11-26 09:19:38.689118934 -0500
2c4cfd
+++ lapack-3.9.0/INSTALL/make.inc.gfortran	2019-11-26 09:20:52.442628214 -0500
2c4cfd
@@ -81,3 +81,4 @@ CBLASLIB     = $(TOPSRCDIR)/libcblas.a
2c4cfd
 LAPACKLIB    = $(TOPSRCDIR)/liblapack.a
2c4cfd
 TMGLIB       = $(TOPSRCDIR)/libtmglib.a
2c4cfd
 LAPACKELIB   = $(TOPSRCDIR)/liblapacke.a
2c4cfd
+SHLIB_LAPACKE = $(TOPSRCDIR)/liblapacke.so
2c4cfd
diff -up lapack-3.9.0/LAPACKE/Makefile.shared lapack-3.9.0/LAPACKE/Makefile
2c4cfd
--- lapack-3.9.0/LAPACKE/Makefile.shared	2019-11-26 09:19:38.689118934 -0500
2c4cfd
+++ lapack-3.9.0/LAPACKE/Makefile	2019-11-26 09:21:59.977268139 -0500
2c4cfd
@@ -54,6 +54,9 @@ lapacke: include/lapacke_mangling.h
2c4cfd
 include/lapacke_mangling.h: include/lapacke_mangling_with_flags.h.in
2c4cfd
 	cp include/lapacke_mangling_with_flags.h.in $@
2c4cfd
 
2c4cfd
+shlib: lapacke
2c4cfd
+	$(CC) $(CFLAGS) -shared -Wl,-soname,liblapacke.so.@SHORTVER@ -o $(SHLIB_LAPACKE).@LONGVER@ src/*.o utils/*.o $(LDFLAGS) $(LIBS) -lgfortran -lc -L.. -llapack
2c4cfd
+
2c4cfd
 .PHONY: lapacke_example
2c4cfd
 lapacke_example: lapacke
2c4cfd
 	$(MAKE) -C example