e2d6d6
diff -up lapack-3.4.1/INSTALL/make.inc.gfortran.shared lapack-3.4.1/INSTALL/make.inc.gfortran
e2d6d6
--- lapack-3.4.1/INSTALL/make.inc.gfortran.shared	2012-09-06 21:55:01.659280432 -0600
e2d6d6
+++ lapack-3.4.1/INSTALL/make.inc.gfortran	2012-09-06 22:04:04.936732440 -0600
e2d6d6
@@ -73,3 +73,4 @@ BLASLIB      = ../../librefblas.a
e2d6d6
 LAPACKLIB    = liblapack.a
e2d6d6
 TMGLIB       = libtmglib.a
e2d6d6
 LAPACKELIB   = liblapacke.a
e2d6d6
+SHLIB_LAPACKE = liblapacke.so
e2d6d6
diff -up lapack-3.4.1/lapacke/Makefile.shared lapack-3.4.1/lapacke/Makefile
e2d6d6
--- lapack-3.4.1/lapacke/Makefile.shared	2012-04-12 17:05:47.000000000 -0600
e2d6d6
+++ lapack-3.4.1/lapacke/Makefile	2012-09-06 21:55:01.851271802 -0600
e2d6d6
@@ -49,6 +49,9 @@ lapacke:
e2d6d6
 	cd src && $(MAKE)
e2d6d6
 	cd utils && $(MAKE)
e2d6d6
 
e2d6d6
+shlib: lapacke
e2d6d6
+	$(CC) $(CFLAGS) -shared -Wl,-soname,$(SHLIB_LAPACKE).@SHORTVER@ -o $(SHLIB_LAPACKE).@LONGVER@ src/*.o utils/*.o $(LIBS) -lgfortran -lc
e2d6d6
+
e2d6d6
 lapacke_example:
e2d6d6
 	cd example && $(MAKE)
e2d6d6