Denys Vlasenko | 1c6c670 | 2015-10-07 01:39:40 +0200 | [diff] [blame^] | 1 | #!/bin/sh |
2 | |||||
3 | # How to configure & build a static wolfssl-3.6.8 library | ||||
4 | # suitable for static build of ssl_helper. | ||||
5 | |||||
6 | export CC="x86_64-gcc" | ||||
7 | export 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 | |||||
21 | make | ||||
22 | exit $? |