summaryrefslogtreecommitdiffhomepage
path: root/networking/ssl_helper-wolfssl/ssl_helper.sh
blob: 8f20963c55a46d2bfaf1a9b10bf1f4adddbdc934 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

# I use this to build static uclibc based binary using Aboriginal Linux toolchain:
PREFIX="i686-"
STATIC="-static"
# Standard build:
#PREFIX=""
#STATIC=""

${PREFIX}gcc -Os -Wall -I wolfssl-* -c ssl_helper.c -o ssl_helper.o
${PREFIX}gcc $STATIC --start-group ssl_helper.o -lm wolfssl-*/src/.libs/libwolfssl.a --end-group -o ssl_helper
${PREFIX}strip ssl_helper