summaryrefslogtreecommitdiff
path: root/standalone/android/haskell-patches/cipher-aes_0.1.7-0001-fix-cross-build.patch
blob: fab0ae6ef765f774a55863edb4267ad644abff0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From d456247000ab839a1d32749717f4f8f92e37dbba Mon Sep 17 00:00:00 2001
From: Joey Hess <joey@kitenet.net>
Date: Tue, 7 May 2013 17:45:45 -0400
Subject: [PATCH] fix cross build

---
 cipher-aes.cabal |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/cipher-aes.cabal b/cipher-aes.cabal
index 02ddfd0..eb916e3 100644
--- a/cipher-aes.cabal
+++ b/cipher-aes.cabal
@@ -31,16 +31,13 @@ Extra-Source-Files:  Tests/*.hs
 
 Library
   Build-Depends:     base >= 4 && < 5
-                   , bytestring
+                   , bytestring >= 0.10.3.0
   Exposed-modules:   Crypto.Cipher.AES
   ghc-options:       -Wall
   C-sources:         cbits/aes_generic.c
                      cbits/aes.c
                      cbits/gf.c
                      cbits/cpu.c
-  if os(linux) && (arch(i386) || arch(x86_64))
-    CC-options:      -mssse3 -maes -mpclmul -DWITH_AESNI
-    C-sources:       cbits/aes_x86ni.c
 
 Test-Suite test-cipher-aes
   type:              exitcode-stdio-1.0
-- 
1.7.10.4