Package: phasex / 0.14.97-2

02-gcc_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
Description: Disable optimization to fix FTBFS on several architectures.
Author: Alessio Treglia <alessio@debian.org>
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=590273
Forwarded: not-needed
---
 configure.ac |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

--- phasex.orig/configure.ac
+++ phasex/configure.ac
@@ -352,13 +352,13 @@ case "$OPT_ARCH" in
 	"none"|"generic")
 		CPU_POWER_LEVEL=2
 		if test "x$gccver" \< "x4.2.0"; then
-			ARCH_OPT_CFLAGS="-mtune=i686 -march=i386"
+			ARCH_OPT_CFLAGS=""
 			WARNING=`echo "*" && \
 				 echo "* WARNING:  No arch specific optimization has been specified." && \
 				 echo "*           Defaulting to i686 tuning for i386 CPU !!!" && \
 				 echo "*"`
 		else
-			ARCH_OPT_CFLAGS="-mtune=generic"
+			ARCH_OPT_CFLAGS=""
 			WARNING=`echo "*" && \
 				 echo "* WARNING:  No arch specific optimization has been specified." && \
 				 echo "*           Try --enable-arch=native !!!" && \
@@ -610,7 +610,7 @@ case "$OPT_ARCH" in
 
 	*)
 		CPU_POWER_LEVEL=2
-		ARCH_OPT_CFLAGS="-mtune=$OPT_ARCH -march=$OPT_ARCH"
+		ARCH_OPT_CFLAGS=""
 		ARCH_MATH_CFLAGS=""
 		;;
 esac
@@ -646,15 +646,15 @@ fi
 case "$DEBUG_CFLAGS" in
 	"none")
 		DEBUG_CFLAGS=""
-		OPT_CFLAGS="-pipe -Wall $ARCH_OPT_CFLAGS -m$ARCH_BITS $ARCH_MATH_CFLAGS -O3 -ffast-math -fomit-frame-pointer -fsingle-precision-constant"
+		OPT_CFLAGS="-pipe -Wall $ARCH_OPT_CFLAGS $ARCH_MATH_CFLAGS -O3 -ffast-math -fomit-frame-pointer -fsingle-precision-constant"
 		;;
 	"yes")
 		DEBUG_CFLAGS="-g"
-		OPT_CFLAGS="-pipe -Wall -Wcast-align -Wconversion -Wextra $ARCH_OPT_CFLAGS -m$ARCH_BITS $ARCH_MATH_CFLAGS -O2 -ffast-math -fsingle-precision-constant"
+		OPT_CFLAGS="-pipe -Wall -Wcast-align -Wconversion -Wextra $ARCH_OPT_CFLAGS $ARCH_MATH_CFLAGS -O2 -ffast-math -fsingle-precision-constant"
 		;;
 	*)
 		DEBUG_CFLAGS="-g"
-		OPT_CFLAGS="-pipe -Wall -Wcast-align -Wconversion -Wextra $ARCH_OPT_CFLAGS -m$ARCH_BITS $ARCH_MATH_CFLAGS -fsingle-precision-constant"
+		OPT_CFLAGS="-pipe -Wall -Wcast-align -Wconversion -Wextra $ARCH_OPT_CFLAGS $ARCH_MATH_CFLAGS -fsingle-precision-constant"
 		;;
 esac