mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
libraries/blas: Fix shared object building and linkage
* silly typo fix: s/W1/Wl/ (one-->ell) * add "-std-legacy" to fortran compiler flags since some of the code is old style Fortran Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
724a074e7a
commit
d31e70fb5d
1 changed files with 3 additions and 3 deletions
|
@ -9,7 +9,7 @@
|
|||
|
||||
PRGNAM=blas
|
||||
VERSION=${VERSION:-20070405}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
# Shared library version
|
||||
|
@ -60,12 +60,12 @@ find . \
|
|||
-exec chmod 644 {} \;
|
||||
|
||||
# Build the object files and the static library
|
||||
make OPTS="$SLKCFLAGS" all
|
||||
make OPTS="$SLKCFLAGS -std=legacy" all
|
||||
ranlib $PRGNAM\_LINUX.a
|
||||
mkdir shared
|
||||
( cd shared
|
||||
ar -x ../$PRGNAM\_LINUX.a
|
||||
gcc -fPIC -lgfortran -shared *.o -W1,-soname,$PRGNAM.so.$SOMAJOR \
|
||||
gcc -fPIC -lgfortran -shared *.o -Wl,-soname,lib$PRGNAM.so.$SOMAJOR \
|
||||
-o lib$PRGNAM.so.$SOVERS
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue