Commit 52483bd5 authored by Marco Mariani's avatar Marco Mariani

libblas: build shared library

parent ebfdc5d3
...@@ -11,15 +11,20 @@ install_cmd = ...@@ -11,15 +11,20 @@ install_cmd =
set -e set -e
mkdir -p ${:location}__compile__ mkdir -p ${:location}__compile__
cd ${:location}__compile__ cd ${:location}__compile__
wget http://www.netlib.org/blas/blas.tgz wget -nc http://www.netlib.org/blas/blas.tgz
tar xzf blas.tgz tar xzf blas.tgz
cd BLAS cd BLAS
${:gfortran} -O3 -std=legacy -m64 -fno-second-underscore -fPIC -c *.f ${:gfortran} -O3 -std=legacy -m64 -fno-second-underscore -fPIC -c *.f
ar r libfblas.a *.o ar r libfblas.a *.o
ranlib libfblas.a ranlib libfblas.a
gcc -shared -Wl,-soname,libf77blas.so.3 -o libf77blas.so.3.0.0 *.o -lc
# rm -rf *.o # rm -rf *.o
mkdir -p ${:location} mkdir -p ${:location}
mv libfblas.a ${:location}/ mv libfblas.a ${:location}/
cp libf77blas.so.3.0.0 ${:location}/
cd ${:location}
ln -sf libf77blas.so.3.0.0 libf77blas.so.3.0
ln -sf libf77blas.so.3.0 libf77blas.so.3
#update_cmd = ${:install_cmd} #update_cmd = ${:install_cmd}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment