diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-12-22 15:13:37 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-12-22 15:13:37 +0100 |
commit | 4acd393eba179f7dfe70f647e3798bc8d10c783a (patch) | |
tree | 9db820b4173488c7291800a9b6aa500d46a4aa6a /networking/httpd_helpers.sh | |
parent | 326edc3e375d6d5be205d4b1592211bf15e33bcd (diff) | |
download | busybox-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>
Diffstat (limited to 'networking/httpd_helpers.sh')
-rwxr-xr-x | networking/httpd_helpers.sh | 24 |
1 files changed, 24 insertions, 0 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 | |||
3 | PREFIX="i486-linux-uclibc-" | ||
4 | OPTS="-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 \ | ||
19 | httpd_indexcgi.c -o index.cgi && strip index.cgi | ||
20 | |||
21 | ${PREFIX}gcc \ | ||
22 | ${OPTS} \ | ||
23 | -Wl,-Map -Wl,httpd_ssi.map \ | ||
24 | httpd_ssi.c -o httpd_ssi && strip httpd_ssi | ||