2014-05-26 21:56:41 +00:00
|
|
|
From 311aab1ae9d7a653edfbec1351f548b98de85c4b Mon Sep 17 00:00:00 2001
|
|
|
|
From: androidbuilder <androidbuilder@example.com>
|
|
|
|
Date: Mon, 26 May 2014 21:54:18 +0000
|
|
|
|
Subject: [PATCH] hack gnutls to link on android
|
2013-04-21 23:10:23 +00:00
|
|
|
|
2013-11-26 19:19:47 +00:00
|
|
|
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..
|
2014-05-26 21:56:41 +00:00
|
|
|
|
|
|
|
Have to list all the libraries that gnutls depends on, pkgconfig depends
|
|
|
|
seems not to be working.
|
2013-04-21 23:10:23 +00:00
|
|
|
---
|
2014-05-26 21:56:41 +00:00
|
|
|
gnutls.cabal | 9 +++++----
|
|
|
|
1 file changed, 5 insertions(+), 4 deletions(-)
|
2013-04-21 23:10:23 +00:00
|
|
|
|
|
|
|
diff --git a/gnutls.cabal b/gnutls.cabal
|
2014-05-26 21:56:41 +00:00
|
|
|
index 5bfe687..61db23f 100644
|
2013-04-21 23:10:23 +00:00
|
|
|
--- a/gnutls.cabal
|
|
|
|
+++ b/gnutls.cabal
|
2014-05-26 21:56:41 +00:00
|
|
|
@@ -31,16 +31,17 @@ source-repository this
|
2013-04-21 23:10:23 +00:00
|
|
|
library
|
|
|
|
hs-source-dirs: lib
|
|
|
|
ghc-options: -Wall -O2
|
2014-05-26 21:56:41 +00:00
|
|
|
+ LD-Options: -L /home/builder/.ghc/android-14/arm-linux-androideabi-4.8/sysroot/usr/lib/
|
|
|
|
+
|
|
|
|
+ extra-libraries: gnutls nettle hogweed gmp z
|
|
|
|
+ pkgconfig-depends: gnutls
|
2013-04-21 23:10:23 +00:00
|
|
|
|
|
|
|
build-depends:
|
|
|
|
base >= 4.0 && < 5.0
|
|
|
|
- , bytestring >= 0.9
|
|
|
|
+ , bytestring >= 0.10.3.0
|
|
|
|
, transformers >= 0.2
|
|
|
|
, monads-tf >= 0.1 && < 0.2
|
|
|
|
|
2013-11-26 19:19:47 +00:00
|
|
|
- extra-libraries: gnutls
|
|
|
|
- pkgconfig-depends: gnutls
|
|
|
|
-
|
|
|
|
exposed-modules:
|
|
|
|
Network.Protocol.TLS.GNU
|
|
|
|
|
2013-04-21 23:10:23 +00:00
|
|
|
--
|
|
|
|
1.7.10.4
|
|
|
|
|