ioctl(SIOCGIFINDEX) does not require clearing of entire ifr
[oweals/busybox.git] / networking / httpd_helpers.sh
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