summaryrefslogtreecommitdiff
path: root/standalone/android/haskell-patches/gnutls_0.1.4-0001-statically-link-with-gnutls.patch
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-05-07 15:05:14 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-05-07 15:05:14 -0400
commit8b51c7e88e8c52ddb44e2969c1133207eb4536a5 (patch)
tree9d5175290239a7c291a2ccc6d2a179cd8d43cfad /standalone/android/haskell-patches/gnutls_0.1.4-0001-statically-link-with-gnutls.patch
parent4e8fed7949e95b7081d7d850ddae9ad874620ff2 (diff)
rename patches for consistenct and machine application
Diffstat (limited to 'standalone/android/haskell-patches/gnutls_0.1.4-0001-statically-link-with-gnutls.patch')
-rw-r--r--standalone/android/haskell-patches/gnutls_0.1.4-0001-statically-link-with-gnutls.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/standalone/android/haskell-patches/gnutls_0.1.4-0001-statically-link-with-gnutls.patch b/standalone/android/haskell-patches/gnutls_0.1.4-0001-statically-link-with-gnutls.patch
new file mode 100644
index 000000000..6c4ae0c63
--- /dev/null
+++ b/standalone/android/haskell-patches/gnutls_0.1.4-0001-statically-link-with-gnutls.patch
@@ -0,0 +1,35 @@
+From c46af28d00a67d372bf59490d288c8cb77bae307 Mon Sep 17 00:00:00 2001
+From: Joey Hess <joey@kitenet.net>
+Date: Sun, 21 Apr 2013 17:14:03 -0400
+Subject: [PATCH] statically link with gnutls
+
+This requires libgnutls.a (and no .so) be installed in the ugly hardcoded
+lib dir. When built this way, the haskell gnutls library will link the
+library into executables with no further options.
+
+Also includes dependencies of libgnutls (needed since it's a static
+library).
+---
+ gnutls.cabal | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/gnutls.cabal b/gnutls.cabal
+index a20e7ed..d8f4a1f 100644
+--- a/gnutls.cabal
++++ b/gnutls.cabal
+@@ -31,10 +31,11 @@ source-repository this
+ library
+ hs-source-dirs: lib
+ ghc-options: -Wall -O2
++ LD-Options: -L /home/joey/.ghc/android-14/arm-linux-androideabi-4.7/arm-linux-androideabi/sysroot/usr/lib/ -lgcrypt -lgpg-error -lz
+
+ build-depends:
+ base >= 4.0 && < 5.0
+- , bytestring >= 0.9
++ , bytestring >= 0.10.3.0
+ , transformers >= 0.2
+ , monads-tf >= 0.1 && < 0.2
+
+--
+1.7.10.4
+