diff options
author | 2006-10-23 20:26:54 +0000 | |
---|---|---|
committer | 2006-10-23 20:26:54 +0000 | |
commit | 4eb9f4e1d4dd35dc2d24d506f9c4541d57eb3127 (patch) | |
tree | 39e9376e87e49245fca222e616fd64daf2bc7a46 /dev-libs/beecrypt/files | |
parent | New package. (diff) | |
download | historical-4eb9f4e1d4dd35dc2d24d506f9c4541d57eb3127.tar.gz historical-4eb9f4e1d4dd35dc2d24d506f9c4541d57eb3127.tar.bz2 historical-4eb9f4e1d4dd35dc2d24d506f9c4541d57eb3127.zip |
Fixed athlon64 (again), bug#152575
Package-Manager: portage-2.1.1
Diffstat (limited to 'dev-libs/beecrypt/files')
-rw-r--r-- | dev-libs/beecrypt/files/beecrypt-4.1.2-build.patch | 133 |
1 files changed, 133 insertions, 0 deletions
diff --git a/dev-libs/beecrypt/files/beecrypt-4.1.2-build.patch b/dev-libs/beecrypt/files/beecrypt-4.1.2-build.patch new file mode 100644 index 000000000000..08768e2523f1 --- /dev/null +++ b/dev-libs/beecrypt/files/beecrypt-4.1.2-build.patch @@ -0,0 +1,133 @@ +diff -urNp beecrypt-4.1.2.org/acinclude.m4 beecrypt-4.1.2/acinclude.m4 +--- beecrypt-4.1.2.org/acinclude.m4 2004-12-19 22:16:35.000000000 +0200 ++++ beecrypt-4.1.2/acinclude.m4 2006-10-23 22:04:59.000000000 +0200 +@@ -16,7 +16,7 @@ AC_DEFUN([BEECRYPT_WITH_CPU],[ + i[[3456]]86) + case $withval in + i[[3456]]86 | \ +- pentium | pentium-mmx | pentiumpro | pentium[[234]] | \ ++ pentium | pentium-m | pentium-mmx | pentiumpro | pentium[[234]] | \ + athlon | athlon-tbird | athlon-4 | athlon-xp | athlon-mp) + ;; + *) +@@ -80,9 +80,10 @@ AC_DEFUN([BEECRYPT_WITH_ARCH],[ + case $target_cpu in + i[[3456]]86) + case $withval in ++ em64t | \ + i[[3456]]86 | \ +- pentium | pentium-mmx | pentiumpro | pentium[[234]] | \ +- athlon | athlon-tbird | athlon-4 | athlon-xp | athlon-mp) ++ pentium | pentium-m | pentium-mmx | pentiumpro | pentium[[234]] | \ ++ athlon | athlon-tbird | athlon-4 | athlon-xp | athlon-mp | athlon64 | k8) + if test "$ac_with_cpu" != yes; then + bc_target_cpu=$withval + fi +@@ -1126,6 +1127,8 @@ AC_DEFUN([BEECRYPT_ASM_SOURCES],[ + m4 $srcdir/gas/mpopt.alpha.m4 > mpopt.s + ]) + ;; ++ athlon64 | athlon-fx | em64t | k8) ++ ;; + athlon* | i[[3456]]86 | pentium*) + AC_CONFIG_COMMANDS([aesopt.x86],[ + m4 $srcdir/gas/aesopt.x86.m4 > aesopt.s +@@ -1184,6 +1187,8 @@ AC_DEFUN([BEECRYPT_ASM_SOURCES],[ + if test "$ac_with_arch" = yes; then + # Code is i586-specific! + case $bc_target_arch in ++ x86_64 | athlon64 | athlon-fx | em64t | k8) ++ ;; + athlon* | i[[56]]86 | pentium*) + AC_CONFIG_COMMANDS([blowfishopt.i586],[ + m4 $srcdir/gas/blowfishopt.i586.m4 > blowfishopt.s +diff -urNp beecrypt-4.1.2.org/configure.ac beecrypt-4.1.2/configure.ac +--- beecrypt-4.1.2.org/configure.ac 2004-12-21 13:37:56.000000000 +0200 ++++ beecrypt-4.1.2/configure.ac 2006-10-23 22:04:30.000000000 +0200 +@@ -501,9 +501,11 @@ if test "$ac_enable_debug" != yes; then + arm*) + CPPFLAGS="$CPPFLAGS -DOPTIMIZE_ARM" + ;; ++ x86_64 | athlon64 | athlon-fx | em64t | k8) ++ CPPFLAGS="$CPPFLAGS -DOPTIMIZE_X86_64" ++ ;; + athlon*) +- CPPFLAGS="$CPPFLAGS -DOPTIMIZE_I386 -DOPTIMIZE_MMX" +- CFLAGS="$CFLAGS -mmmx" ++ CPPFLAGS="$CPPFLAGS -DOPTIMIZE_I686 -DOPTIMIZE_MMX" + ;; + i386) + CPPFLAGS="$CPPFLAGS -DOPTIMIZE_I386" +@@ -526,24 +528,23 @@ if test "$ac_enable_debug" != yes; then + pentium) + CPPFLAGS="$CPPFLAGS -DOPTIMIZE_I586" + ;; ++ pentium-m) ++ CPPFLAGS="$CPPFLAGS -DOPTIMIZE_I686 -DOPTIMIZE_MMX -DOPTIMIZE_SSE -DOPTIMIZE_SSE2" ++ ;; + pentium-mmx) + CPPFLAGS="$CPPFLAGS -DOPTIMIZE_I586 -DOPTIMIZE_MMX" +- CFLAGS="$CFLAGS -mmmx" + ;; + pentiumpro) + CPPFLAGS="$CPPFLAGS -DOPTIMIZE_I686" + ;; + pentium2) + CPPFLAGS="$CPPFLAGS -DOPTIMIZE_I686 -DOPTIMIZE_MMX" +- CFLAGS="$CFLAGS -mmmx" + ;; + pentium3) + CPPFLAGS="$CPPFLAGS -DOPTIMIZE_I686 -DOPTIMIZE_MMX -DOPTIMIZE_SSE" +- CFLAGS="$CFLAGS -msse" + ;; + pentium4) + CPPFLAGS="$CPPFLAGS -DOPTIMIZE_I686 -DOPTIMIZE_MMX -DOPTIMIZE_SSE -DOPTIMIZE_SSE2" +- CFLAGS="$CFLAGS -msse2" + ;; + powerpc) + CPPFLAGS="$CPPFLAGS -DOPTIMIZE_POWERPC" +@@ -556,15 +557,12 @@ if test "$ac_enable_debug" != yes; then + ;; + sparcv8) + CPPFLAGS="$CPPFLAGS -DOPTIMIZE_SPARCV8" +- CFLAGS="$CFLAGS -Wa,-xarch=v8" + ;; + sparcv8plus*) + CPPFLAGS="$CPPFLAGS -DOPTIMIZE_SPARCV8PLUS" +- CFLAGS="$CFLAGS -Wa,-xarch=v8plus" + ;; + sparcv9*) + CPPFLAGS="$CPPFLAGS -DOPTIMIZE_SPARCV9" +- CFLAGS="$CFLAGS -Wa,-xarch=v9" + ;; + x86_64) + CPPFLAGS="$CPPFLAGS -DOPTIMIZE_X86_64" +diff -urNp beecrypt-4.1.2.org/gas/x86.m4 beecrypt-4.1.2/gas/x86.m4 +--- beecrypt-4.1.2.org/gas/x86.m4 2004-06-13 14:37:28.000000000 +0300 ++++ beecrypt-4.1.2/gas/x86.m4 2006-10-23 22:05:14.000000000 +0200 +@@ -48,3 +48,25 @@ define(USE_MMX) + define(USE_SSE) + define(USE_SSE2) + ') ++ifelse(ASM_ARCH,pentium-m,` ++undefine(`ALIGN') ++define(ALIGN,`.p2align 4') ++define(USE_MMX) ++define(USE_SSE) ++define(USE_SSE2) ++') ++ifelse(ASM_ARCH,athlon64,` ++undefine(`USE_MMX') ++') ++ifelse(ASM_ARCH,x86_64,` ++undefine(`USE_MMX') ++') ++ifelse(ASM_ARCH,athlon-fx,` ++undefine(`USE_MMX') ++') ++ifelse(ASM_ARCH,em64t,` ++undefine(`USE_MMX') ++') ++ifelse(ASM_ARCH,k8,` ++undefine(`USE_MMX') ++') |