00cfg-wolfssl-3.9.8 907 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/bin/sh
  2. # How to configure & build a static wolfssl library
  3. # suitable for static build of ssl_helper.
  4. export CC="i686-gcc"
  5. export CFLAGS="\
  6. -Os \
  7. -static \
  8. -fomit-frame-pointer \
  9. -falign-functions=1 -falign-labels=1 -falign-loops=1 -falign-jumps=1 \
  10. -ffunction-sections -fdata-sections \
  11. "
  12. {
  13. ./configure \
  14. --host="i686" \
  15. --enable-static \
  16. --enable-singlethreaded \
  17. --disable-shared \
  18. \
  19. C_EXTRA_FLAGS="-DWOLFSSL_STATIC_RSA" \
  20. || exit $?
  21. # The second group of options was added when "vanilla" config did not work.
  22. # A good tool to debug problems is to try wolfssl's client tool, e.g.:
  23. # examples/client/client -h www.google.com -p 443 -d -x
  24. #
  25. # configure has many other options, see ./configure --help
  26. # --enable-ecc \
  27. # --enable-sni \
  28. #
  29. # Also consult "wolfSSL - Embedded SSL Library Product Support Forums"
  30. # for recent report of users having problems connecting.
  31. make
  32. } 2>&1 | tee "$0.log"