Package: sooperlooper / 1.7.8~dfsg0-3

07-remove_powerpc_cpu_flags.patch Patch series | 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
60
61
62
63
64
65
66
67
68
69
70
71
From: =?utf-8?b?SmFyb23DrXIgTWlrZcWh?= <mira.mikes@seznam.cz>
Date: Wed, 7 Dec 2022 07:57:15 +0100
Subject: Remove exotic powerpc flags.

Forwarded: no
---
 autogen.sh | 51 ---------------------------------------------------
 1 file changed, 51 deletions(-)

diff --git a/autogen.sh b/autogen.sh
index 0ab0828..7f36fcf 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -192,57 +192,6 @@ dnl
 gcc_major_version=`$CC -dumpversion | sed -e 's/\..*//'`
 os_system=`uname -s`
 
-if test "\$target_cpu" = "powerpc"; then
-  AC_DEFINE(POWERPC, 1, "Are we running a ppc CPU?")
-  altivecLinux=`cat /proc/cpuinfo | grep -i altivec >/dev/null`
-  if test "\$?" = "0"; then
-    AC_DEFINE(HAVE_ALTIVEC_LINUX, 1, "Is there Altivec Support ?")
-    if test "\$gcc_major_version" = "3"; then
-dnl -mcpu=7450 does not reliably work with gcc 3.*
-      #OPT_FLAGS="-D_REENTRANT -O3 -mcpu=7400 -maltivec -mabi=altivec"
-      OPT_FLAGS="-D_REENTRANT -O3 -mcpu=7400 -mtune=7450"
-    else
-      OPT_FLAGS="-D_REENTRANT -Os"
-    fi
-  else
-    OPT_FLAGS="-D_REENTRANT -Os "
-  fi
-  OPT_FLAGS="\$OPT_FLAGS -mhard-float -mpowerpc-gfxopt"
-elif echo \$target_cpu | grep "i*86" >/dev/null; then
- if test "\$os_system" = "Darwin"; then
-   # pretty good assumption
-   mmx="-mmmx" 
-   sse="-msse -mfpmath=sse"
-   OPT_FLAGS="-D_REENTRANT -Os -fomit-frame-pointer \$mmx \$sse"   
- else
-  cat /proc/cpuinfo | grep mmx >/dev/null
-  if test \$? = 0; then
-    mmx="-mmmx"
-  fi
-  cat /proc/cpuinfo | grep sse >/dev/null
-  if test \$? = 0; then
-    sse="-msse -mfpmath=sse"
-  fi
-  cat /proc/cpuinfo | grep 3dnow >/dev/null
-  if test \$? = 0; then
-    dreidnow="-m3dnow"
-  fi
- 
- 
-  AC_DEFINE(x86, 1, "Nope its intel")
-  if test "\$target_cpu" = "i586"; then
-    OPT_FLAGS="-DREENTRANT -O2 -march=i586 -fomit-frame-pointer"
-  elif test "\$target_cpu" = "i686"; then
-    OPT_FLAGS="-D_REENTRANT -O2 -march=i686 -fomit-frame-pointer"
-    if test "\$gcc_major_version" -ge "3"; then
-      OPT_FLAGS="\$OPT_FLAGS \$mmx \$sse \$dreidnow"
-    fi
-  else
-    OPT_FLAGS="-D_REENTRANT -O2 -fomit-frame-pointer"
-  fi
- fi
-fi
-
 OPT_FLAGS="\$OPT_FLAGS -pipe"
 
 # LARGEFILE_FLAGS="\`getconf LFS_CFLAGS\`"