diff options
author | Denys Vlasenko | 2016-12-22 15:13:37 +0100 |
---|---|---|
committer | Denys Vlasenko | 2016-12-22 15:13:37 +0100 |
commit | 4acd393eba179f7dfe70f647e3798bc8d10c783a (patch) | |
tree | 9db820b4173488c7291800a9b6aa500d46a4aa6a /networking/httpd_helpers.sh | |
parent | 326edc3e375d6d5be205d4b1592211bf15e33bcd (diff) | |
download | busybox-4acd393eba179f7dfe70f647e3798bc8d10c783a.zip busybox-4acd393eba179f7dfe70f647e3798bc8d10c783a.tar.gz |
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 0000000..8eaa2d4 --- /dev/null +++ b/networking/httpd_helpers.sh @@ -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 |