File: 0001-avoid-inappropriate-compiler-flags

package info (click to toggle)
tsdecrypt 10.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,268 kB
  • sloc: ansic: 14,377; makefile: 252; sh: 166
file content (59 lines) | stat: -rw-r--r-- 1,448 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
From: Peter Michael Green <plugwash@debian.org>
Date: Sun, 10 Mar 2024 19:16:16 +0100
Subject: Avoid inappropriate compiler flags

 The tsdecrypt build system tries to be too clever and assumes that the system
 it is built on will be the system it is going to run on. This is inappropriate
 for Debian so we need to disable some of this logic.
---
 FFdecsa_init | 34 +++++++++++++++++-----------------
 1 file changed, 17 insertions(+), 17 deletions(-)

diff --git a/FFdecsa_init b/FFdecsa_init
index 3d72a63..597aaf8 100755
--- a/FFdecsa_init
+++ b/FFdecsa_init
@@ -106,26 +106,26 @@ test_ffdecsa_mode() {
 }
 
 # Check CPU and compiler flags
-if cc_check -march=native
-then
-	FFDECSA_CFLAGS="$FFDECSA_CFLAGS -march=native"
-elif cc_check -march=pentium; then
-	FFDECSA_CFLAGS="$FFDECSA_CFLAGS -march=pentium"
-fi
+#if cc_check -march=native
+#then
+#	FFDECSA_CFLAGS="$FFDECSA_CFLAGS -march=native"
+#elif cc_check -march=pentium; then
+#	FFDECSA_CFLAGS="$FFDECSA_CFLAGS -march=pentium"
+#fi
 
 OPTS=""
 FLAGS=""
-for flag in mmx sse sse2
-do
-	if cpu_have $flag
-	then
-		OPTS="$OPTS $flag"
-		if cc_check -m$flag
-		then
-			FFDECSA_CFLAGS="$FFDECSA_CFLAGS -m$flag"
-		fi
-	fi
-done
+#for flag in mmx sse sse2
+#do
+#	if cpu_have $flag
+#	then
+#		OPTS="$OPTS $flag"
+#		if cc_check -m$flag
+#		then
+#			FFDECSA_CFLAGS="$FFDECSA_CFLAGS -m$flag"
+#		fi
+#	fi
+#done
 
 log "Host CPU" "$(uname -m) $OPTS"
 log "FFdecsa CFLAGS" "$FFDECSA_CFLAGS"