File: use-external-slicot.patch

package info (click to toggle)
octave-control 4.1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 13,932 kB
  • sloc: fortran: 122,751; cpp: 6,954; objc: 210; makefile: 44; xml: 33; sh: 3
file content (39 lines) | stat: -rw-r--r-- 1,566 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Description: Use external SLICOT instead of embedded copy
Author: Sébastien Villemot <sebastien@debian.org>
Forwarded: not-needed
Reviewed-By: Rafael Laboissière <rafael@debian.org>
Last-Update: 2025-09-12
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/Makefile
+++ b/src/Makefile
@@ -49,27 +49,11 @@ $(SC_SRC)/MA02ID.f:
 
 # TODO: Private oct-files for control package.
 
-# Compile SLICOT library
-#
-# Compile: $(SC_SRC)/*.f                       (SLICOT files, copied above)
-#          $(SRC)/TG04BX.f $(SRC)/TB01ZD.f     own derived files
-#          $(SRC_AUX)/*.f                      external sources like
-#                                              deprecated LAPACK files
-#
-# MA02ID.f is compiled by an extra command
-# suppressing warnings on indexing errors
-#
-slicotlibrary.a: slicot $(SC_SRC)/MA02ID.f
-	cd $(SC_SRC) && \
-	  $(MKOCTFILE) -w -c MA02ID.f; mv MA02ID.f x && \
-		$(MKOCTFILE) -c *.f $(SRC)/TB01ZD.f $(SRC)/TG04BX.f $(SRC_AUX)/*.f && \
-		mv x MA02ID.f
-	$(AR) -rc slicotlibrary.a $(SC_SRC)/*.o
 
 # slicot functions
-__control_slicot_functions__.oct: __control_slicot_functions__.cc common.cc slicotlibrary.a
+__control_slicot_functions__.oct: __control_slicot_functions__.cc common.cc TG04BX.f
 	LDFLAGS="$(LDFLAGS)" \
-    $(MKOCTFILE) $(PKG_CXXFLAGS) __control_slicot_functions__.cc common.cc slicotlibrary.a
+    $(MKOCTFILE) $(PKG_CXXFLAGS) __control_slicot_functions__.cc common.cc TG04BX.f -lslicot
 
 # helper functions
 __control_helper_functions__.oct: __control_helper_functions__.cc