File: 0006-Fix-static-and-shared-linkage-for-CLI.patch

package info (click to toggle)
astc-encoder 5.3.0%2Bds-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 43,260 kB
  • sloc: ansic: 44,647; cpp: 24,160; python: 3,403; sh: 85; makefile: 26
file content (37 lines) | stat: -rw-r--r-- 1,326 bytes parent folder | download
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
From: =?utf-8?q?Timo_R=C3=B6hling?= <roehling@debian.org>
Date: Mon, 26 Jun 2023 15:57:56 +0200
Subject: Fix static and shared linkage for CLI

Forwarded: not-needed
---
 Source/cmake_core.cmake | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Source/cmake_core.cmake b/Source/cmake_core.cmake
index ae61c9d..7cb43c5 100644
--- a/Source/cmake_core.cmake
+++ b/Source/cmake_core.cmake
@@ -88,12 +88,12 @@ endif()
 if(${ASTCENC_CLI})
     # Veneer is compiled without any extended ISA so we can safely do
     # ISA compatability checks without triggering a SIGILL
-    add_library(${ASTCENC_TARGET}-veneer1
+    add_library(${ASTCENC_TARGET}-veneer1 STATIC
         astcenccli_entry.cpp)
 
     # Veneer is compiled with extended ISA but without vector length overrides
     # so we can safely do SVE vector length compatability checks
-    add_library(${ASTCENC_TARGET}-veneer2
+    add_library(${ASTCENC_TARGET}-veneer2 STATIC
         astcenccli_entry2.cpp)
 
     add_executable(${ASTCENC_TARGET}
@@ -113,7 +113,7 @@ if(${ASTCENC_CLI})
             ZLIB::ZLIB
             ${ASTCENC_TARGET}-veneer1
             ${ASTCENC_TARGET}-veneer2
-            ${ASTCENC_TARGET}-static)
+            ${ASTCENC_TARGET}-shared)
 endif()
 
 macro(astcenc_set_properties ASTCENC_TARGET_NAME ASTCENC_VENEER_TYPE)