blob: 27d0c41ee77e8109620226bdb763be25c191b6bd [file] [log] [blame]
Denys Vlasenko1c6c6702015-10-07 01:39:40 +02001#!/bin/sh
2
3# How to configure & build a static wolfssl-3.6.8 library
4# suitable for static build of ssl_helper.
5
6export CC="x86_64-gcc"
7export CFLAGS="\
8-Os \
9-static \
10-fomit-frame-pointer \
11-falign-functions=1 -falign-labels=1 -falign-loops=1 -falign-jumps=1 \
12-ffunction-sections -fdata-sections \
13"
14
15./configure \
16 --enable-static \
17 --enable-singlethreaded \
18 --disable-shared \
19|| exit $?
20
21make
22exit $?