698a2e
From 3119c671c566761a79ac98405cb619892acde3e8 Mon Sep 17 00:00:00 2001
698a2e
From: Lukas Slebodnik <lslebodn@redhat.com>
698a2e
Date: Fri, 20 Sep 2013 09:26:58 +0200
698a2e
Subject: [PATCH] atlas-shared_libraries
698a2e
698a2e
---
698a2e
 ATLAS/makes/Make.lib | 9 +++++++--
698a2e
 1 file changed, 7 insertions(+), 2 deletions(-)
698a2e
698a2e
diff --git a/ATLAS/makes/Make.lib b/ATLAS/makes/Make.lib
698a2e
index ab1eb9963d36678972a0a410905169aaa563dc64..27c6e316b442e09b0f46afac7940aaa11e25e45c 100644
698a2e
--- a/ATLAS/makes/Make.lib
698a2e
+++ b/ATLAS/makes/Make.lib
698a2e
@@ -4,6 +4,8 @@ mySRCdir = $(SRCdir)/lib
698a2e
 #
698a2e
 # override with libatlas.so only when atlas is built to one lib
698a2e
 #
698a2e
+so_ver_major=3
698a2e
+so_ver = $(so_ver_major).10
698a2e
 DYNlibs = liblapack.so libf77blas.so libcblas.so libatlas.so 
698a2e
 PTDYNlibs = liblapack.so libptf77blas.so libptcblas.so libatlas.so 
698a2e
 CDYNlibs = liblapack.so libcblas.so libatlas.so 
698a2e
@@ -116,9 +116,12 @@ LDTRY:
698a2e
            -rpath-link $(LIBINSTdir)  \
698a2e
            --whole-archive $(libas) --no-whole-archive $(LIBS)
698a2e
 GCCTRY:
698a2e
-	$(GOODGCC) -shared -o $(outso)  \
698a2e
-           -Wl,"-rpath-link $(LIBINSTdir)" \
698a2e
+	$(GOODGCC) -shared -o $(outso).$(so_ver)  \
698a2e
+           \
698a2e
+           -Wl,-soname,"$(outso).$(so_ver_major)" \
698a2e
            -Wl,--whole-archive $(libas) -Wl,--no-whole-archive $(LIBS)
698a2e
+	  ln -s $(outso).$(so_ver) $(outso).$(so_ver_major)
698a2e
+	  ln -s $(outso).$(so_ver) $(outso)
698a2e
 GCCTRY_norp:
698a2e
 	$(GOODGCC) -shared -o $(outso)  \
698a2e
            -Wl,--whole-archive $(libas) -Wl,--no-whole-archive $(LIBS)
698a2e
-- 
698a2e
1.8.3.1
698a2e