[Slackbuilds-users] Problematic soname for blas and lapack libraries.

Pablo Santamaria pablosantamaria at gmail.com
Wed Aug 11 00:39:38 UTC 2010


In the Slackbuilds for blas and lapack libraries the.
soname include the entire version number of the library..
This is problematic for updates (e.x. 3.2.1 -> 3.2.2)..
A better option is to use the major number (*.so.3) and.
symlink properly. The changes in the Slackbuilds would be

MAJOR=$(echo $VERSION | cut -d. -f1)
gcc -fPIC -lgfortran -shared *.o -W1,-soname,$PRGNAM.so.$MAJOR \
          -o lib$PRGNAM.so.$VERSION
 cd $PKG/usr/lib${LIBDIRSUFFIX}
  chmod 755 *.so.*
  ln -s lib$PRGNAM.so.$VERSION lib$PRGNAM.so.$MAJOR
  ln -s lib$PRGNAM.so.$MAJOR   lib$PRGNAM.so

-- Pablo

More information about the SlackBuilds-users mailing list