ssl_helper: tweaks discovered while building 32-bit version
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 7 Oct 2015 00:00:11 +0000 (02:00 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 7 Oct 2015 00:00:11 +0000 (02:00 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/ssl_helper-wolfssl/00cfg-wolfssl-3.6.8
networking/ssl_helper-wolfssl/README
networking/ssl_helper-wolfssl/ssl_helper.sh

index 27d0c41ee77e8109620226bdb763be25c191b6bd..50b6102d9ecda10ef96f1f8aac9ff8f42d93a398 100755 (executable)
@@ -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 $?
index 17437606d95acd4ea172676278faab6c437855c8..58a381c204dc84ddddfc0c5ff8ea8662d04a3e32 100644 (file)
@@ -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
index ddb4536c7b24be19ef8ea8273647ffde353f85fd..184ffe67e0fa32289993d210f7c7eff92fff9ae7 100755 (executable)
@@ -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