blob: 50b6102d9ecda10ef96f1f8aac9ff8f42d93a398
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="i686-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 | --host=i686 \ |
17 | --enable-static \ |
18 | --enable-singlethreaded \ |
19 | --disable-shared \ |
20 | || exit $? |
21 | |
22 | make |
23 |