view src/mingw-blas-1-xerbla.patch @ 5531:eae508c12529

Add build rule for build-octave (bug #49503). * src/build-octave.mk: Add new build rule for build-octave which can be used for cross-building binary packages that depend on Octave as a build tool. * dist-files.mk: Add new file to list. * index.html: Add new package to list. * src/of-communications.mk, src/of-image.mk, src/of-mapping.mk, src/of-optiminterp.mk, src/of-sparsersb.mk, src/of-statistics.mk, src/of-windows.mk: Add optional dependency on build-octave. * configure.ac: Add new configure switch "--disable-system-octave" that is needed to build the build-octave package. * Makefile.in: Add variable "USE_SYSTEM_OCTAVE". Exclude build-octave from the default build tools and build it only if a package explicitly depends on it. Display warning about missing native Octave version only if necessary.
author Markus Mützel <markus.muetzel@gmx.de>
date Tue, 08 Sep 2020 23:04:38 +0200
parents 80461a9e516c
children e617e117f94d
line wrap: on
line source

diff -uNr a/Makefile b/Makefile
--- a/Makefile	2017-11-15 00:39:21.000000000 -0500
+++ b/Makefile	2018-06-20 09:55:02.049803368 -0400
@@ -55,8 +55,8 @@
 #
 #######################################################################
 
-all: $(BLASLIB)
- 
+all: $(BLASLIB) $(XERBLALIB)
+
 #---------------------------------------------------------
 #  Comment out the next 6 definitions if you already have
 #  the Level 1 BLAS.
@@ -88,9 +88,11 @@
 #  Level 2 and Level 3 BLAS.  Comment it out only if you already have
 #  both the Level 2 and 3 BLAS.
 #---------------------------------------------------------------------
-ALLBLAS  = lsame.o xerbla.o xerbla_array.o
+ALLBLAS  = lsame.o xerbla_array.o
 $(ALLBLAS) : $(FRC)
 
+XERBLA = xerbla.o
+
 #---------------------------------------------------------
 #  Comment out the next 4 definitions if you already have
 #  the Level 2 BLAS.
@@ -137,10 +139,16 @@
 	$(CBLAS1) $(CBLAS2) $(CBLAS3) $(ZBLAS1) 	\
 	$(ZBLAS2) $(ZBLAS3) $(ALLBLAS)
 
+XERBLAOBJ=$(XERBLA)
+
 $(BLASLIB): $(ALLOBJ)
 	$(ARCH) $(ARCHFLAGS) $@ $(ALLOBJ)
 	$(RANLIB) $@
 
+$(XERBLALIB): $(XERBLAOBJ)
+	$(ARCH) $(ARCHFLAGS) $@ $(XERBLAOBJ)
+	$(RANLIB) $@
+
 single: $(SBLAS1) $(ALLBLAS) $(SBLAS2) $(SBLAS3)
 	$(ARCH) $(ARCHFLAGS) $(BLASLIB) $(SBLAS1) $(ALLBLAS) \
 	$(SBLAS2) $(SBLAS3)
diff -uNr a/make.inc b/make.inc
--- a/make.inc	2011-04-19 15:08:00.000000000 -0400
+++ b/make.inc	2018-06-20 09:55:18.185059266 -0400
@@ -32,3 +32,4 @@
 #  The location and name of the Reference BLAS library.
 #
 BLASLIB      = blas$(PLAT).a
+XERBLALIB    = xerbla$(PLAT).a