[PATCH 1/2] mpi: fix code path selection for x86_64 on Darwin.

Rafaël Carré funman at videolan.org
Fri May 9 19:06:24 CEST 2014


From: Konstantin Pavlov <thresh at videolan.org>

This patch fixes build error observed on current Darwin platform with asm
enabled:

gcc -DHAVE_CONFIG_H -I. -I.. -I../src -I../src
-g -O2 -MT mpih-mul1-asm.lo -MD -MP -MF .deps/mpih-mul1-asm.Tpo -c
mpih-mul1-asm.S -fno-common -DPIC -o .libs/mpih-mul1-asm.o
mpih-mul1-asm.S:43:9: error: invalid alignment value

Signed-off-by: Rafaël Carré <funman at videolan.org>
---
 mpi/config.links | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/mpi/config.links b/mpi/config.links
index 0217d35..595e879 100644
--- a/mpi/config.links
+++ b/mpi/config.links
@@ -113,6 +113,12 @@ case "${host}" in
 	path="i586 i386"
         mpi_cpu_arch="x86"
 	;;
+	x86_64-apple-darwin*)
+	echo '#define BSD_SYNTAX' >>./mpi/asm-syntax.h
+	cat  $srcdir/mpi/i386/syntax.h      >>./mpi/asm-syntax.h
+	path="amd64"
+		mpi_cpu_arch="x86"
+	;;
     i[3467]86*-*-*)
 	echo '#define ELF_SYNTAX' >>./mpi/asm-syntax.h
 	cat  $srcdir/mpi/i386/syntax.h	    >>./mpi/asm-syntax.h
-- 
1.9.2




More information about the Gcrypt-devel mailing list