File papi-use_major_in_soname.patch of Package papi

Date: 22.02.2012

Use the major version in the libraries soname.

Signed-off-by: Philipp Thomas <pth@suse.de>

Index: src/configure.in
===================================================================
--- src/configure.in.orig	2012-04-23 14:20:19.155129831 +0200
+++ src/configure.in	2012-04-23 14:20:19.163129638 +0200
@@ -1272,7 +1272,7 @@ LIBRARY=libpapi.a
 SHLIB='libpapi.so.$(PAPIVER)'
 OMPCFLGS=-fopenmp
 CC_R='$(CC) -pthread'
-CC_SHR='$(CC) -fPIC -DPIC -shared -Wl,-soname -Wl,libpapi.so -Xlinker "-rpath" -Xlinker "$(LIBDIR)"'
+CC_SHR='$(CC) -fPIC -DPIC -shared -Wl,-soname -Wl,libpapi.so.$(PAPIVER) -Xlinker "-rpath" -Xlinker "$(LIBDIR)"'
 if test "$CC" = "gcc"; then
 	if test "$bitmode" = "32"; then
 		BITFLAGS=-m32
openSUSE Build Service is sponsored by