From: Debian Science Team Date: Mon, 8 Jul 2019 12:24:15 +0000 (+0100) Subject: shared-blas-lapack X-Git-Tag: archive/raspbian/0.3.7+ds-1+rpi1~2^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0053b82561a20030f113060db699636ee8e1395d;p=openblas.git shared-blas-lapack Gbp-Pq: Name shared-blas-lapack.patch --- diff --git a/interface/Makefile b/interface/Makefile index f77781b..03027ba 100644 --- a/interface/Makefile +++ b/interface/Makefile @@ -2204,3 +2204,18 @@ cblas_xerbla.$(SUFFIX) cblas_xerbla.$(PSUFFIX) : xerbla.c # OpenBLAS (unfiltered) tarball delete-duplicate-lapack-objects: cd ../lapack-netlib && rm $(SLAPACKOBJS) $(DLAPACKOBJS) $(CLAPACKOBJS) $(ZLAPACKOBJS) lsame.o xerbla.o + +shared-blas-lapack: libblas.so.3 liblapack.so.3 + +# The list of prerequisite is created by comparing with NETLIB BLAS public API. +# The symbol cblas_xerbla is missing here, but it does not seem to be provided +# by libopenblas.so.0 either. +libblas.so.3: $(SBLAS1OBJS) $(SBLAS2OBJS) $(SBLAS3OBJS) $(DBLAS1OBJS) $(DBLAS2OBJS) $(DBLAS3OBJS) $(CBLAS1OBJS) $(CBLAS2OBJS) $(CBLAS3OBJS) $(ZBLAS1OBJS) $(ZBLAS2OBJS) $(ZBLAS3OBJS) ../kernel/lsame.o ../kernel/scabs1.o ../kernel/dcabs1.o ../driver/others/xerbla.o + $(CC) $(LDFLAGS) -shared -o $@ $^ -Wl,-soname,libblas.so.3 -L.. -lopenblas $(EXTRALIB) + +# The prerequisites must match the symbols deleted in target delete-duplicate-lapack-objects +liblapack.so.3: $(SLAPACKOBJS) $(DLAPACKOBJS) $(CLAPACKOBJS) $(ZLAPACKOBJS) ../kernel/lsame.o ../driver/others/xerbla.o + $(CC) $(LDFLAGS) -shared -o $@ $^ ../lapack-netlib/* -Wl,-soname,liblapack.so.3 -L.. -lopenblas $(EXTRALIB) + +clean:: + rm -f libblas.so.3 liblapack.so.3