Update information on building httpd and wget helpers
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
326edc3e37
commit
4acd393eba
24
networking/httpd_helpers.sh
Executable file
24
networking/httpd_helpers.sh
Executable file
@ -0,0 +1,24 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
PREFIX="i486-linux-uclibc-"
|
||||||
|
OPTS="-static -static-libgcc \
|
||||||
|
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 \
|
||||||
|
-Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes -Werror \
|
||||||
|
-Wold-style-definition -Wdeclaration-after-statement -Wno-pointer-sign \
|
||||||
|
-Wmissing-prototypes -Wmissing-declarations \
|
||||||
|
-Os -fno-builtin-strlen -finline-limit=0 -fomit-frame-pointer \
|
||||||
|
-ffunction-sections -fdata-sections -fno-guess-branch-probability \
|
||||||
|
-funsigned-char \
|
||||||
|
-falign-functions=1 -falign-jumps=1 -falign-labels=1 -falign-loops=1 \
|
||||||
|
-march=i386 -mpreferred-stack-boundary=2 \
|
||||||
|
-Wl,--warn-common -Wl,--sort-common -Wl,--gc-sections"
|
||||||
|
|
||||||
|
${PREFIX}gcc \
|
||||||
|
${OPTS} \
|
||||||
|
-Wl,-Map -Wl,index.cgi.map \
|
||||||
|
httpd_indexcgi.c -o index.cgi && strip index.cgi
|
||||||
|
|
||||||
|
${PREFIX}gcc \
|
||||||
|
${OPTS} \
|
||||||
|
-Wl,-Map -Wl,httpd_ssi.map \
|
||||||
|
httpd_ssi.c -o httpd_ssi && strip httpd_ssi
|
@ -5,18 +5,15 @@ http://busybox.net/downloads/binaries/
|
|||||||
|
|
||||||
Build instructions:
|
Build instructions:
|
||||||
|
|
||||||
* Unpack wolfssl-3.6.8.zip
|
|
||||||
* Build it:
|
|
||||||
./configure --enable-static --disable-shared && make
|
|
||||||
* Drop this directory into wolfssl-3.6.8/ssl_helper
|
|
||||||
* Run ssl_helper.sh to compile and link the helper
|
|
||||||
|
|
||||||
* Unpack wolfssl-3.9.8.tar.gz from https://github.com/wolfSSL/wolfssl/releases
|
* Unpack wolfssl-3.9.8.tar.gz from https://github.com/wolfSSL/wolfssl/releases
|
||||||
|
to a wolfssl-3.9.8 subdirectory here.
|
||||||
* Create configure:
|
* Create configure:
|
||||||
./autogen.sh
|
(cd wolfssl-* && ./autogen.sh)
|
||||||
* Build it: see 00cfg-wolfssl-3.9.8 shell script
|
* Build it: see
|
||||||
* Drop this directory into wolfssl-x.y.z/ssl_helper
|
(cd wolfssl-* && ../00cfg-wolfssl-3.9.8)
|
||||||
* Run ssl_helper.sh to compile and link the helper
|
* Run
|
||||||
|
./ssl_helper.sh
|
||||||
|
to compile and link the helper
|
||||||
|
|
||||||
Usage: "ssl_helper -d FILE_DESCRIPTOR" where FILE_DESCRIPTOR is open to the peer.
|
Usage: "ssl_helper -d FILE_DESCRIPTOR" where FILE_DESCRIPTOR is open to the peer.
|
||||||
|
|
||||||
|
@ -7,6 +7,6 @@ STATIC="-static"
|
|||||||
#PREFIX=""
|
#PREFIX=""
|
||||||
#STATIC=""
|
#STATIC=""
|
||||||
|
|
||||||
${PREFIX}gcc -Os -Wall -I.. -c ssl_helper.c -o ssl_helper.o
|
${PREFIX}gcc -Os -Wall -I wolfssl-* -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 wolfssl-*/src/.libs/libwolfssl.a --end-group -o ssl_helper
|
||||||
${PREFIX}strip ssl_helper
|
${PREFIX}strip ssl_helper
|
||||||
|
Loading…
Reference in New Issue
Block a user