File: shared-lapack.patch

package info (click to toggle)
libflame 5.2.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 162,052 kB
  • sloc: ansic: 750,080; fortran: 404,344; makefile: 8,133; sh: 5,458; python: 937; pascal: 144; perl: 66
file content (16 lines) | stat: -rw-r--r-- 587 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: build a shared version of lapack.so.3
--- a/Makefile
+++ b/Makefile
@@ -559,6 +559,12 @@
 	@$(LINKER) $(SOFLAGS) $(LDFLAGS) -o $@ $^
 endif
 endif
+	cp $(AR_OBJ_LIST_FILE) $(AR_OBJ_LIST_FILE).lapack
+	bash debian/patchobjlist.sh >> $(AR_OBJ_LIST_FILE).lapack
+	$(LINKER) $(SOFLAGS) $(LDFLAGS) -o $(BASE_LIB_PATH)/liblapack.so.3 \
+		@$(AR_OBJ_LIST_FILE).lapack -lblas -lgfortran \
+		-Wl,-version-script,debian/shared-lapack.lds \
+		-Wl,-soname,liblapack.so.3
 
 # Local symlink for shared library.
 # NOTE: We use a '.loc' suffix to avoid filename collisions in case this