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