From 421a04b35ff890556750d04bf57b40283172e27b Mon Sep 17 00:00:00 2001
From: Paul Furley <paul@paulfurley.com>
Date: Sat, 3 Aug 2013 11:51:00 +0000
Subject: Added linux-armv4 openssl build script

---
 ext/bin/libcrypto/openssl-config-linux-armv4.sh | 4 ++++
 1 file changed, 4 insertions(+)
 create mode 100644 ext/bin/libcrypto/openssl-config-linux-armv4.sh

diff --git a/ext/bin/libcrypto/openssl-config-linux-armv4.sh b/ext/bin/libcrypto/openssl-config-linux-armv4.sh
new file mode 100644
index 00000000..c7687fe8
--- /dev/null
+++ b/ext/bin/libcrypto/openssl-config-linux-armv4.sh
@@ -0,0 +1,4 @@
+make clean
+./Configure no-sock no-ssl2 no-ssl3 no-err no-krb5 no-engine no-hw no-tlsext no-jpake no-capieng no-idea no-camellia no-seed no-bf no-cast no-des no-rc2 no-rc4 no-rc5 no-md2 no-md4 no-ripemd no-mdc2 no-rsa no-dsa no-dh no-shared no-zlib no-dso no-cms no-ocsp no-txt_db no-pem no-mdc2 no-ui no-ts linux-armv4
+make depend
+make build_crypto
-- 
cgit v1.2.3


From 2e373f6400df2e46429ba0568fa0f613508437ff Mon Sep 17 00:00:00 2001
From: Paul Furley <paul@paulfurley.com>
Date: Sat, 3 Aug 2013 12:01:20 +0000
Subject: Symlink linux-armv61 to linux-armv4

---
 ext/bin/libcrypto/linux-armv61 | 1 +
 1 file changed, 1 insertion(+)
 create mode 120000 ext/bin/libcrypto/linux-armv61

diff --git a/ext/bin/libcrypto/linux-armv61 b/ext/bin/libcrypto/linux-armv61
new file mode 120000
index 00000000..23a34df6
--- /dev/null
+++ b/ext/bin/libcrypto/linux-armv61
@@ -0,0 +1 @@
+linux-armv4/
\ No newline at end of file
-- 
cgit v1.2.3


From d415c61c672939cb03f0b111dc39139d654ac62f Mon Sep 17 00:00:00 2001
From: Paul Furley <paul@paulfurley.com>
Date: Sat, 3 Aug 2013 12:15:15 +0000
Subject: libcrypto.afor linux-armv4

---
 ext/bin/libcrypto/linux-armv4/libcrypto.a | Bin 0 -> 2608484 bytes
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 ext/bin/libcrypto/linux-armv4/libcrypto.a

diff --git a/ext/bin/libcrypto/linux-armv4/libcrypto.a b/ext/bin/libcrypto/linux-armv4/libcrypto.a
new file mode 100644
index 00000000..7dd87bbb
Binary files /dev/null and b/ext/bin/libcrypto/linux-armv4/libcrypto.a differ
-- 
cgit v1.2.3


From 58c9e90b49b88543ada7511f852c8f85ea3ef25c Mon Sep 17 00:00:00 2001
From: Paul Furley <paul@paulfurley.com>
Date: Sat, 3 Aug 2013 13:00:29 +0000
Subject: Fixed typo in symlink, v61 vs v6l

---
 ext/bin/libcrypto/linux-armv61 | 1 -
 ext/bin/libcrypto/linux-armv6l | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)
 delete mode 120000 ext/bin/libcrypto/linux-armv61
 create mode 120000 ext/bin/libcrypto/linux-armv6l

diff --git a/ext/bin/libcrypto/linux-armv61 b/ext/bin/libcrypto/linux-armv61
deleted file mode 120000
index 23a34df6..00000000
--- a/ext/bin/libcrypto/linux-armv61
+++ /dev/null
@@ -1 +0,0 @@
-linux-armv4/
\ No newline at end of file
diff --git a/ext/bin/libcrypto/linux-armv6l b/ext/bin/libcrypto/linux-armv6l
new file mode 120000
index 00000000..23a34df6
--- /dev/null
+++ b/ext/bin/libcrypto/linux-armv6l
@@ -0,0 +1 @@
+linux-armv4/
\ No newline at end of file
-- 
cgit v1.2.3


From 71b1eb9d5218d81de8baf57dfd8f2b4e69142a2d Mon Sep 17 00:00:00 2001
From: Paul Furley <paul@paulfurley.com>
Date: Sat, 3 Aug 2013 13:55:46 +0000
Subject: Link against libdl to enable use of dlopen etc in libcrypto.a

---
 Makefile.linux | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Makefile.linux b/Makefile.linux
index 77327282..dd570911 100644
--- a/Makefile.linux
+++ b/Makefile.linux
@@ -2,15 +2,16 @@ CC=gcc
 CXX=g++
 
 INCLUDES=-Iext/bin/libcrypto/include -Iext/jsoncpp/include
+LDFLAGS=-ldl
 ARCH=$(shell uname -m)
 DEFS=-DZT_ARCH="$(ARCH)" -DZT_OSNAME="linux" -DZT_TRACE
 
 # Uncomment for a release optimized build
-CFLAGS=-Wall -O3 -fno-unroll-loops -fstack-protector -pthread $(INCLUDES) -DNDEBUG $(DEFS)
+CFLAGS=-Wall -O3 -fno-unroll-loops -fstack-protector -pthread $(INCLUDES) $(LDFLAGS) -DNDEBUG $(DEFS)
 STRIP=strip --strip-all
 
 # Uncomment for a debug build
-#CFLAGS=-Wall -g -pthread $(INCLUDES) -DZT_TRACE -DZT_LOG_STDOUT $(DEFS)
+#CFLAGS=-Wall -g -pthread $(INCLUDES) $(LDFLAGS) -DZT_TRACE -DZT_LOG_STDOUT $(DEFS)
 #STRIP=echo
 
 CXXFLAGS=$(CFLAGS) -fno-rtti
-- 
cgit v1.2.3