]> git.sesse.net Git - vlc/blob - contrib/src/gcrypt/gcrypt-fix-x86_64-codepath-on-Darwin.patch
contrib/gcrypt: fix compilation on x86_64/Darwin with clang
[vlc] / contrib / src / gcrypt / gcrypt-fix-x86_64-codepath-on-Darwin.patch
1 From 3149e9b73a94b45a5126cc778fe03f0b686dced9 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Felix=20Paul=20K=C3=BChne?= <fkuehne@videolan.org>
3 Date: Sat, 22 Mar 2014 19:55:52 +0100
4 Subject: [PATCH] Fix code path selection for x86_64 on Darwin
5
6 ---
7  mpi/config.links | 6 ++++++
8  1 file changed, 6 insertions(+)
9
10 diff --git a/mpi/config.links b/mpi/config.links
11 index 0217d35..4f35ea2 100644
12 --- a/mpi/config.links
13 +++ b/mpi/config.links
14 @@ -127,6 +127,12 @@ case "${host}" in
15         path="i586 i386"
16          mpi_cpu_arch="x86"
17         ;;
18 +    x86_64-apple-darwin*)
19 +       echo '#define BSD_SYNTAX' >>./mpi/asm-syntax.h
20 +       cat  $srcdir/mpi/i386/syntax.h      >>./mpi/asm-syntax.h
21 +       path="amd64"
22 +        mpi_cpu_arch="x86"
23 +       ;;
24      x86_64-*-*)
25         echo '#define ELF_SYNTAX' >>./mpi/asm-syntax.h
26         cat  $srcdir/mpi/i386/syntax.h      >>./mpi/asm-syntax.h
27 -- 
28 1.8.5.2 (Apple Git-48)
29