File: avoid-inappropriate-compiler-flags

package info (click to toggle)
tsdecrypt 10.0-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,208 kB
  • sloc: ansic: 14,373; makefile: 252; sh: 166
file content (52 lines) | stat: -rw-r--r-- 1,269 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
44
45
46
47
48
49
50
51
52
Description: 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.
Author: Peter Michael Green <plugwash@debian.org>

--- tsdecrypt-10.0.orig/FFdecsa_init
+++ tsdecrypt-10.0/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"