2015-10-07 05:09:40 +05:30
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# How to configure & build a static wolfssl-3.6.8 library
|
|
|
|
# suitable for static build of ssl_helper.
|
|
|
|
|
2015-10-07 05:30:11 +05:30
|
|
|
export CC="i686-gcc"
|
2015-10-07 05:09:40 +05:30
|
|
|
export CFLAGS="\
|
|
|
|
-Os \
|
|
|
|
-static \
|
|
|
|
-fomit-frame-pointer \
|
|
|
|
-falign-functions=1 -falign-labels=1 -falign-loops=1 -falign-jumps=1 \
|
|
|
|
-ffunction-sections -fdata-sections \
|
|
|
|
"
|
|
|
|
|
|
|
|
./configure \
|
2015-10-07 05:30:11 +05:30
|
|
|
--host=i686 \
|
2015-10-07 05:09:40 +05:30
|
|
|
--enable-static \
|
|
|
|
--enable-singlethreaded \
|
|
|
|
--disable-shared \
|
|
|
|
|| exit $?
|
|
|
|
|
|
|
|
make
|