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
|
@ -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 New Issue