From: Debian Science Team Date: Sun, 26 Oct 2014 09:42:29 +0000 (+0000) Subject: shared-blas-lapack X-Git-Tag: archive/raspbian/0.2.19-2+rpi1~1^2^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d9da67f9959209b61b45c3fe6c6527827636823c;p=openblas.git shared-blas-lapack Gbp-Pq: Name shared-blas-lapack.patch --- diff --git a/interface/Makefile b/interface/Makefile index fbfcb10..5f38dbb 100644 --- a/interface/Makefile +++ b/interface/Makefile @@ -2108,3 +2108,18 @@ cblas_zimatcopy.$(SUFFIX) cblas_zimatcopy.$(PSUFFIX) : zimatcopy.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