File: static-test-libs.patch

package info (click to toggle)
magma-rocm 2.9.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 83,208 kB
  • sloc: cpp: 709,115; fortran: 121,916; ansic: 32,343; python: 25,603; f90: 15,208; makefile: 942; xml: 253; csh: 232; sh: 203; perl: 104
file content (43 lines) | stat: -rw-r--r-- 1,411 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
40
41
42
43
From: Cordell Bloor <cgmb@slerp.xyz>
Date: Wed, 19 Feb 2025 02:34:50 -0700
Subject: static lapacktest and tester libs

This eliminates the need to ship the liblapacktest.so and libtester.so
shared libraries for libmagma-rocm-test.

Forwarded: not-needed
---
 CMakeLists.txt | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 388be18..f11f8c2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -551,7 +551,7 @@ if (USE_FORTRAN)
             list( APPEND liblapacktest_all_f ${filename} )
         endif()
     endforeach()
-    add_library( lapacktest ${liblapacktest_all_f} )
+    add_library( lapacktest STATIC ${liblapacktest_all_f} )
 else()
     # alternatively, use only C/C++/CUDA files, including magma_[sdcz]_no_fortran.cpp
     foreach( filename ${liblapacktest_all} )
@@ -559,7 +559,7 @@ else()
             list( APPEND liblapacktest_all_cpp ${filename} )
         endif()
     endforeach()
-    add_library( lapacktest ${liblapacktest_all_cpp} )
+    add_library( lapacktest STATIC ${liblapacktest_all_cpp} )
 endif()
 target_link_libraries( lapacktest
     ${blas_fix}
@@ -569,7 +569,7 @@ target_link_libraries( lapacktest
 
 # ----------------------------------------
 # compile tester library
-add_library( tester ${libtest_all} )
+add_library( tester STATIC ${libtest_all} )
 target_link_libraries( tester
     magma
     lapacktest