ssl_helper.sh 372 B

123456789101112
  1. #!/bin/sh
  2. # I use this to build static uclibc based binary using Aboriginal Linux toolchain:
  3. PREFIX="i686-"
  4. STATIC="-static"
  5. # Standard build:
  6. #PREFIX=""
  7. #STATIC=""
  8. ${PREFIX}gcc -Os -Wall -I wolfssl-* -c ssl_helper.c -o ssl_helper.o
  9. ${PREFIX}gcc $STATIC --start-group ssl_helper.o -lm wolfssl-*/src/.libs/libwolfssl.a --end-group -o ssl_helper
  10. ${PREFIX}strip ssl_helper