summaryrefslogtreecommitdiff
path: root/standalone/android/haskell-patches/gnutls_0.1.4-0001-statically-link-with-gnutls.patch
blob: 24f17cc6f658a19a9babf57a90b01179c8dd8832 (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
35
36
37
From 67435289745b2f96fc9d1cd8e0263ef0565e4789 Mon Sep 17 00:00:00 2001
From: Joey Hess <joey@kitenet.net>
Date: Tue, 26 Nov 2013 19:18:28 +0000
Subject: [PATCH] hack gnutls to statically link

This uses a hardcoded path to the library, which includes the
arm-linux-androideabi-4.8 part. Will need to be changed when that changes..
---
 gnutls.cabal |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/gnutls.cabal b/gnutls.cabal
index 5bfe687..ff1d08c 100644
--- a/gnutls.cabal
+++ b/gnutls.cabal
@@ -31,16 +31,14 @@ source-repository this
 library
   hs-source-dirs: lib
   ghc-options: -Wall -O2
+  LD-Options: -L /home/androidbuilder/.ghc/android-14/arm-linux-androideabi-4.8/sysroot/usr/lib/ -l:libgnutls.a -l:libnettle.a -l:libhogweed.a -l:libgmp.a
 
   build-depends:
       base >= 4.0 && < 5.0
-    , bytestring >= 0.9
+    , bytestring >= 0.10.3.0
     , transformers >= 0.2
     , monads-tf >= 0.1 && < 0.2
 
-  extra-libraries: gnutls
-  pkgconfig-depends: gnutls
-
   exposed-modules:
     Network.Protocol.TLS.GNU
 
-- 
1.7.10.4