summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenys Vlasenko2015-10-07 02:00:11 +0200
committerDenys Vlasenko2015-10-07 02:00:11 +0200
commit78fb6ea63a1421be106baf87f8155e701da9a2dc (patch)
treeee0fc667e75894099af22ea75bee2367d79cb9ea /networking
parent1c6c670ed44a77ab4784ea0d4ac5411d7b0648d8 (diff)
downloadbusybox-78fb6ea63a1421be106baf87f8155e701da9a2dc.zip
busybox-78fb6ea63a1421be106baf87f8155e701da9a2dc.tar.gz
ssl_helper: tweaks discovered while building 32-bit version
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rwxr-xr-xnetworking/ssl_helper-wolfssl/00cfg-wolfssl-3.6.84
-rw-r--r--networking/ssl_helper-wolfssl/README5
-rwxr-xr-xnetworking/ssl_helper-wolfssl/ssl_helper.sh5
3 files changed, 10 insertions, 4 deletions
diff --git a/networking/ssl_helper-wolfssl/00cfg-wolfssl-3.6.8 b/networking/ssl_helper-wolfssl/00cfg-wolfssl-3.6.8
index 27d0c41..50b6102 100755
--- a/networking/ssl_helper-wolfssl/00cfg-wolfssl-3.6.8
+++ b/networking/ssl_helper-wolfssl/00cfg-wolfssl-3.6.8
@@ -3,7 +3,7 @@
# How to configure & build a static wolfssl-3.6.8 library
# suitable for static build of ssl_helper.
-export CC="x86_64-gcc"
+export CC="i686-gcc"
export CFLAGS="\
-Os \
-static \
@@ -13,10 +13,10 @@ export CFLAGS="\
"
./configure \
+ --host=i686 \
--enable-static \
--enable-singlethreaded \
--disable-shared \
|| exit $?
make
-exit $?
diff --git a/networking/ssl_helper-wolfssl/README b/networking/ssl_helper-wolfssl/README
index 1743760..58a381c 100644
--- a/networking/ssl_helper-wolfssl/README
+++ b/networking/ssl_helper-wolfssl/README
@@ -1,3 +1,8 @@
+A small SSL helper for busybox wget.
+
+Precompiled static binary may be found in
+http://busybox.net/downloads/binaries/
+
Build instructions:
* Unpack wolfssl-3.6.8.zip
diff --git a/networking/ssl_helper-wolfssl/ssl_helper.sh b/networking/ssl_helper-wolfssl/ssl_helper.sh
index ddb4536..184ffe6 100755
--- a/networking/ssl_helper-wolfssl/ssl_helper.sh
+++ b/networking/ssl_helper-wolfssl/ssl_helper.sh
@@ -1,11 +1,12 @@
#!/bin/sh
# I use this to build static uclibc based binary using Aboriginal Linux toolchain:
-PREFIX=x86_64-
-STATIC=-static
+PREFIX="i686-"
+STATIC="-static"
# Standard build:
#PREFIX=""
#STATIC=""
${PREFIX}gcc -Os -Wall -I.. -c ssl_helper.c -o ssl_helper.o
${PREFIX}gcc $STATIC --start-group ssl_helper.o -lm ../src/.libs/libwolfssl.a --end-group -o ssl_helper
+${PREFIX}-strip ssl_helper