Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
# 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 \
"
./configure \
+ --host=i686 \
--enable-static \
--enable-singlethreaded \
--disable-shared \
|| exit $?
make
-exit $?
+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
#!/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