diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2015-10-07 02:00:11 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2015-10-07 02:00:11 +0200 |
commit | 78fb6ea63a1421be106baf87f8155e701da9a2dc (patch) | |
tree | ee0fc667e75894099af22ea75bee2367d79cb9ea | |
parent | 1c6c670ed44a77ab4784ea0d4ac5411d7b0648d8 (diff) | |
download | busybox-w32-78fb6ea63a1421be106baf87f8155e701da9a2dc.tar.gz busybox-w32-78fb6ea63a1421be106baf87f8155e701da9a2dc.tar.bz2 busybox-w32-78fb6ea63a1421be106baf87f8155e701da9a2dc.zip |
ssl_helper: tweaks discovered while building 32-bit version
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rwxr-xr-x | networking/ssl_helper-wolfssl/00cfg-wolfssl-3.6.8 | 4 | ||||
-rw-r--r-- | networking/ssl_helper-wolfssl/README | 5 | ||||
-rwxr-xr-x | networking/ssl_helper-wolfssl/ssl_helper.sh | 5 |
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 27d0c41ee..50b6102d9 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 @@ | |||
3 | # How to configure & build a static wolfssl-3.6.8 library | 3 | # How to configure & build a static wolfssl-3.6.8 library |
4 | # suitable for static build of ssl_helper. | 4 | # suitable for static build of ssl_helper. |
5 | 5 | ||
6 | export CC="x86_64-gcc" | 6 | export CC="i686-gcc" |
7 | export CFLAGS="\ | 7 | export CFLAGS="\ |
8 | -Os \ | 8 | -Os \ |
9 | -static \ | 9 | -static \ |
@@ -13,10 +13,10 @@ export CFLAGS="\ | |||
13 | " | 13 | " |
14 | 14 | ||
15 | ./configure \ | 15 | ./configure \ |
16 | --host=i686 \ | ||
16 | --enable-static \ | 17 | --enable-static \ |
17 | --enable-singlethreaded \ | 18 | --enable-singlethreaded \ |
18 | --disable-shared \ | 19 | --disable-shared \ |
19 | || exit $? | 20 | || exit $? |
20 | 21 | ||
21 | make | 22 | make |
22 | exit $? | ||
diff --git a/networking/ssl_helper-wolfssl/README b/networking/ssl_helper-wolfssl/README index 17437606d..58a381c20 100644 --- a/networking/ssl_helper-wolfssl/README +++ b/networking/ssl_helper-wolfssl/README | |||
@@ -1,3 +1,8 @@ | |||
1 | A small SSL helper for busybox wget. | ||
2 | |||
3 | Precompiled static binary may be found in | ||
4 | http://busybox.net/downloads/binaries/ | ||
5 | |||
1 | Build instructions: | 6 | Build instructions: |
2 | 7 | ||
3 | * Unpack wolfssl-3.6.8.zip | 8 | * 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 ddb4536c7..184ffe67e 100755 --- a/networking/ssl_helper-wolfssl/ssl_helper.sh +++ b/networking/ssl_helper-wolfssl/ssl_helper.sh | |||
@@ -1,11 +1,12 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | # I use this to build static uclibc based binary using Aboriginal Linux toolchain: | 3 | # I use this to build static uclibc based binary using Aboriginal Linux toolchain: |
4 | PREFIX=x86_64- | 4 | PREFIX="i686-" |
5 | STATIC=-static | 5 | STATIC="-static" |
6 | # Standard build: | 6 | # Standard build: |
7 | #PREFIX="" | 7 | #PREFIX="" |
8 | #STATIC="" | 8 | #STATIC="" |
9 | 9 | ||
10 | ${PREFIX}gcc -Os -Wall -I.. -c ssl_helper.c -o ssl_helper.o | 10 | ${PREFIX}gcc -Os -Wall -I.. -c ssl_helper.c -o ssl_helper.o |
11 | ${PREFIX}gcc $STATIC --start-group ssl_helper.o -lm ../src/.libs/libwolfssl.a --end-group -o ssl_helper | 11 | ${PREFIX}gcc $STATIC --start-group ssl_helper.o -lm ../src/.libs/libwolfssl.a --end-group -o ssl_helper |
12 | ${PREFIX}-strip ssl_helper | ||