diff --git a/Makefile.linux b/Makefile.linux index 773272825..dd5709113 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 diff --git a/ext/bin/libcrypto/linux-armv4/libcrypto.a b/ext/bin/libcrypto/linux-armv4/libcrypto.a new file mode 100644 index 000000000..7dd87bbbe Binary files /dev/null and b/ext/bin/libcrypto/linux-armv4/libcrypto.a differ diff --git a/ext/bin/libcrypto/linux-armv6l b/ext/bin/libcrypto/linux-armv6l new file mode 120000 index 000000000..23a34df6d --- /dev/null +++ b/ext/bin/libcrypto/linux-armv6l @@ -0,0 +1 @@ +linux-armv4/ \ No newline at end of file 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 000000000..c7687fe87 --- /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