aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-12-22 15:13:37 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2016-12-22 15:13:37 +0100
commit4acd393eba179f7dfe70f647e3798bc8d10c783a (patch)
tree9db820b4173488c7291800a9b6aa500d46a4aa6a
parent326edc3e375d6d5be205d4b1592211bf15e33bcd (diff)
downloadbusybox-w32-4acd393eba179f7dfe70f647e3798bc8d10c783a.tar.gz
busybox-w32-4acd393eba179f7dfe70f647e3798bc8d10c783a.tar.bz2
busybox-w32-4acd393eba179f7dfe70f647e3798bc8d10c783a.zip
Update information on building httpd and wget helpers
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rwxr-xr-xnetworking/httpd_helpers.sh24
-rw-r--r--networking/ssl_helper-wolfssl/README17
-rwxr-xr-xnetworking/ssl_helper-wolfssl/ssl_helper.sh4
3 files changed, 33 insertions, 12 deletions
diff --git a/networking/httpd_helpers.sh b/networking/httpd_helpers.sh
new file mode 100755
index 000000000..8eaa2d456
--- /dev/null
+++ b/networking/httpd_helpers.sh
@@ -0,0 +1,24 @@
1#!/bin/sh
2
3PREFIX="i486-linux-uclibc-"
4OPTS="-static -static-libgcc \
5-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 \
6-Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes -Werror \
7-Wold-style-definition -Wdeclaration-after-statement -Wno-pointer-sign \
8-Wmissing-prototypes -Wmissing-declarations \
9-Os -fno-builtin-strlen -finline-limit=0 -fomit-frame-pointer \
10-ffunction-sections -fdata-sections -fno-guess-branch-probability \
11-funsigned-char \
12-falign-functions=1 -falign-jumps=1 -falign-labels=1 -falign-loops=1 \
13-march=i386 -mpreferred-stack-boundary=2 \
14-Wl,--warn-common -Wl,--sort-common -Wl,--gc-sections"
15
16${PREFIX}gcc \
17${OPTS} \
18-Wl,-Map -Wl,index.cgi.map \
19httpd_indexcgi.c -o index.cgi && strip index.cgi
20
21${PREFIX}gcc \
22${OPTS} \
23-Wl,-Map -Wl,httpd_ssi.map \
24httpd_ssi.c -o httpd_ssi && strip httpd_ssi
diff --git a/networking/ssl_helper-wolfssl/README b/networking/ssl_helper-wolfssl/README
index ff46f4bdf..34d676da0 100644
--- a/networking/ssl_helper-wolfssl/README
+++ b/networking/ssl_helper-wolfssl/README
@@ -5,18 +5,15 @@ http://busybox.net/downloads/binaries/
5 5
6Build instructions: 6Build instructions:
7 7
8* Unpack wolfssl-3.6.8.zip
9* Build it:
10 ./configure --enable-static --disable-shared && make
11* Drop this directory into wolfssl-3.6.8/ssl_helper
12* Run ssl_helper.sh to compile and link the helper
13
14* Unpack wolfssl-3.9.8.tar.gz from https://github.com/wolfSSL/wolfssl/releases 8* Unpack wolfssl-3.9.8.tar.gz from https://github.com/wolfSSL/wolfssl/releases
9 to a wolfssl-3.9.8 subdirectory here.
15* Create configure: 10* Create configure:
16 ./autogen.sh 11 (cd wolfssl-* && ./autogen.sh)
17* Build it: see 00cfg-wolfssl-3.9.8 shell script 12* Build it: see
18* Drop this directory into wolfssl-x.y.z/ssl_helper 13 (cd wolfssl-* && ../00cfg-wolfssl-3.9.8)
19* Run ssl_helper.sh to compile and link the helper 14* Run
15 ./ssl_helper.sh
16 to compile and link the helper
20 17
21Usage: "ssl_helper -d FILE_DESCRIPTOR" where FILE_DESCRIPTOR is open to the peer. 18Usage: "ssl_helper -d FILE_DESCRIPTOR" where FILE_DESCRIPTOR is open to the peer.
22 19
diff --git a/networking/ssl_helper-wolfssl/ssl_helper.sh b/networking/ssl_helper-wolfssl/ssl_helper.sh
index c6cbf353f..8f20963c5 100755
--- a/networking/ssl_helper-wolfssl/ssl_helper.sh
+++ b/networking/ssl_helper-wolfssl/ssl_helper.sh
@@ -7,6 +7,6 @@ STATIC="-static"
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 wolfssl-* -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 wolfssl-*/src/.libs/libwolfssl.a --end-group -o ssl_helper
12${PREFIX}strip ssl_helper 12${PREFIX}strip ssl_helper