ssl_helper: tweaks discovered while building 32-bit version

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2015-10-07 02:00:11 +02:00
parent 1c6c670ed4
commit 78fb6ea63a
3 changed files with 10 additions and 4 deletions

View File

@ -3,7 +3,7 @@
# How to configure & build a static wolfssl-3.6.8 library # How to configure & build a static wolfssl-3.6.8 library
# suitable for static build of ssl_helper. # suitable for static build of ssl_helper.
export CC="x86_64-gcc" export CC="i686-gcc"
export CFLAGS="\ export CFLAGS="\
-Os \ -Os \
-static \ -static \
@ -13,10 +13,10 @@ export CFLAGS="\
" "
./configure \ ./configure \
--host=i686 \
--enable-static \ --enable-static \
--enable-singlethreaded \ --enable-singlethreaded \
--disable-shared \ --disable-shared \
|| exit $? || exit $?
make make
exit $?

View 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: Build instructions:
* Unpack wolfssl-3.6.8.zip * Unpack wolfssl-3.6.8.zip

View File

@ -1,11 +1,12 @@
#!/bin/sh #!/bin/sh
# I use this to build static uclibc based binary using Aboriginal Linux toolchain: # I use this to build static uclibc based binary using Aboriginal Linux toolchain:
PREFIX=x86_64- PREFIX="i686-"
STATIC=-static STATIC="-static"
# Standard build: # Standard build:
#PREFIX="" #PREFIX=""
#STATIC="" #STATIC=""
${PREFIX}gcc -Os -Wall -I.. -c ssl_helper.c -o ssl_helper.o ${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}gcc $STATIC --start-group ssl_helper.o -lm ../src/.libs/libwolfssl.a --end-group -o ssl_helper
${PREFIX}-strip ssl_helper