httpd_helpers.sh 847 B

123456789101112131415161718192021222324
  1. #!/bin/sh
  2. PREFIX="i486-linux-uclibc-"
  3. OPTS="-static -static-libgcc \
  4. -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 \
  5. -Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes -Werror \
  6. -Wold-style-definition -Wdeclaration-after-statement -Wno-pointer-sign \
  7. -Wmissing-prototypes -Wmissing-declarations \
  8. -Os -fno-builtin-strlen -finline-limit=0 -fomit-frame-pointer \
  9. -ffunction-sections -fdata-sections -fno-guess-branch-probability \
  10. -funsigned-char \
  11. -falign-functions=1 -falign-jumps=1 -falign-labels=1 -falign-loops=1 \
  12. -march=i386 -mpreferred-stack-boundary=2 \
  13. -Wl,--warn-common -Wl,--sort-common -Wl,--gc-sections"
  14. ${PREFIX}gcc \
  15. ${OPTS} \
  16. -Wl,-Map -Wl,index.cgi.map \
  17. httpd_indexcgi.c -o index.cgi && strip index.cgi
  18. ${PREFIX}gcc \
  19. ${OPTS} \
  20. -Wl,-Map -Wl,httpd_ssi.map \
  21. httpd_ssi.c -o httpd_ssi && strip httpd_ssi