]> git.pld-linux.org Git - packages/beecrypt.git/blob - beecrypt-opt.patch
fb6a490943203d87015baf7f8ab97a2eb51c3dc1
[packages/beecrypt.git] / beecrypt-opt.patch
1 diff -urN beecrypt-4.1.0.org/acinclude.m4 beecrypt-4.1.0/acinclude.m4
2 --- beecrypt-4.1.0.org/acinclude.m4     2004-11-18 13:31:16.000000000 +0100
3 +++ beecrypt-4.1.0/acinclude.m4 2004-11-18 15:18:11.817798072 +0100
4 @@ -495,19 +495,19 @@
5          # -march=athlon64 degrades performance
6          ;;
7        athlon*)
8 -        CFLAGS="$CFLAGS -march=$bc_target_arch"
9 +        CFLAGS="$CFLAGS -march=$bc_target_cpu"
10          ;;
11        i586)
12 -        CFLAGS="$CFLAGS -march=pentium"
13 +        CFLAGS="$CFLAGS -march=$bc_target_cpu"
14          ;;
15        i686)
16 -        CFLAGS="$CFLAGS -march=pentiumpro"
17 +        CFLAGS="$CFLAGS -march=$bc_target_cpu"
18          ;;
19        pentium*)
20 -        CFLAGS="$CFLAGS -march=$bc_target_arch"
21 +        CFLAGS="$CFLAGS -march=$bc_target_cpu"
22          ;;
23        powerpc | powerpc64)
24 -        CFLAGS="$CFLAGS -mcpu=$bc_target_arch"
25 +        CFLAGS="$CFLAGS -mcpu=$bc_target_cpu"
26          ;;
27        sparcv8)
28          CFLAGS="$CFLAGS -mv8"
29 @@ -570,7 +570,7 @@
30      if test "$bc_cv_c_aggressive_opt" = yes; then
31        case $bc_target_cpu in
32        athlon*)
33 -        CXXFLAGS="$CXXFLAGS -mcpu=pentiumpro";
34 +        CXXFLAGS="$CXXFLAGS -mcpu=$bc_target_cpu";
35          ;;
36        i586)
37          CXXFLAGS="$CXXFLAGS -mcpu=pentium"
38 @@ -582,7 +582,7 @@
39          # no -mcpu=... option on ia64
40          ;;
41        pentium*)
42 -        CXXFLAGS="$CXXFLAGS -mcpu=$bc_target_arch"
43 +        CXXFLAGS="$CXXFLAGS -mcpu=$bc_target_cpu"
44          ;;
45        esac
46        # Architecture-specific optimizations
47 diff -urN beecrypt-4.1.0.org/configure.ac beecrypt-4.1.0/configure.ac
48 --- beecrypt-4.1.0.org/configure.ac     2004-11-17 20:05:37.000000000 +0100
49 +++ beecrypt-4.1.0/configure.ac 2004-11-18 15:19:07.577852788 +0100
50 @@ -489,7 +489,7 @@
51      CPPFLAGS="$CPPFLAGS -DOPTIMIZE_ARM"
52      ;;
53    athlon*)
54 -    CPPFLAGS="$CPPFLAGS -DOPTIMIZE_I386 -DOPTIMIZE_MMX"
55 +    CPPFLAGS="$CPPFLAGS -DOPTIMIZE_I686 -DOPTIMIZE_MMX"
56      CFLAGS="$CFLAGS -mmmx"
57      ;;
58    i386)
59 --- beecrypt-4.1.2/configure.ac.orig    2009-09-15 11:17:44.000000000 +0200
60 +++ beecrypt-4.1.2/configure.ac 2009-09-15 11:49:24.000000000 +0200
61 @@ -556,15 +556,12 @@
62      ;;
63    sparcv8)
64      CPPFLAGS="$CPPFLAGS -DOPTIMIZE_SPARCV8"
65 -    CFLAGS="$CFLAGS -Wa,-xarch=v8"
66      ;;
67    sparcv8plus*)
68      CPPFLAGS="$CPPFLAGS -DOPTIMIZE_SPARCV8PLUS"
69 -    CFLAGS="$CFLAGS -Wa,-xarch=v8plus"
70      ;;
71    sparcv9*)
72      CPPFLAGS="$CPPFLAGS -DOPTIMIZE_SPARCV9"
73 -    CFLAGS="$CFLAGS -Wa,-xarch=v9"
74      ;;
75    x86_64)
76      CPPFLAGS="$CPPFLAGS -DOPTIMIZE_X86_64"
This page took 0.03742 seconds and 2 git commands to generate.