[patch] don't use 32bit asssembly on powerpc64

Andreas Metzler ametzler at downhill.at.eu.org
Sat Jul 8 17:52:58 CEST 2006


Hej,

mpi/config.links looks like this:
-----------
powerpc*-*-linux*)
[...]
ppc620-*-*      | \
powerpc64*-*-*)
-----------

because first match wins a 64bit linux powerpc will use the generic
(32bit) powerpc linux stuff. Moving the second entry further up fixes
this.

(This was reported and diagnosed by Rafael Ávila de Espíndola on
http://bugs.debian.org/284609). This applies to both 1.2.2 and svn
trunk.

thanks, cu andreas
-- 
The 'Galactic Cleaning' policy undertaken by Emperor Zhark is a personal
vision of the emperor's, and its inclusion in this work does not constitute
tacit approval by the author or the publisher for any such projects,
howsoever undertaken.                                (c) Jasper Ffforde
-------------- next part --------------
--- libgcrypt-1.2.2-upstream/mpi/config.links	2005-07-29 15:45:42.000000000 +0200
+++ libgcrypt11-1.2.2/mpi/config.links	2006-06-25 13:30:26.876070760 +0200
@@ -221,6 +221,11 @@
 	path="m68k/mc68020 m68k"
 	;;
 
+    ppc620-*-*	    | \
+    powerpc64*-*-*)
+	mpi_sflags="-Wa,-mppc"
+	path="powerpc64"
+	;;
     powerpc*-*-linux*)
 	echo '/* configured for powerpc/ELF */' >>./mpi/asm-syntax.h
 	echo '#define ELF_SYNTAX'               >>./mpi/asm-syntax.h
@@ -264,11 +269,6 @@
 	mpi_sflags="-Wa,-mppc"
 	path="powerpc32"
 	;;
-    ppc620-*-*	    | \
-    powerpc64*-*-*)
-	mpi_sflags="-Wa,-mppc"
-	path="powerpc64"
-	;;
     powerpc*-*-*)
 	mpi_sflags="-Wa,-mppc"
 	path="powerpc32"


More information about the Gcrypt-devel mailing list