hush/networking/ssl_helper-wolfssl/00cfg-wolfssl-3.6.8

23 lines
409 B
Bash
Executable File

#!/bin/sh
# How to configure & build a static wolfssl-3.6.8 library
# suitable for static build of ssl_helper.
export CC="x86_64-gcc"
export CFLAGS="\
-Os \
-static \
-fomit-frame-pointer \
-falign-functions=1 -falign-labels=1 -falign-loops=1 -falign-jumps=1 \
-ffunction-sections -fdata-sections \
"
./configure \
--enable-static \
--enable-singlethreaded \
--disable-shared \
|| exit $?
make
exit $?