Denys Vlasenko | 1c6c670 | 2015-10-07 01:39:40 +0200 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | # I use this to build static uclibc based binary using Aboriginal Linux toolchain: |
Denys Vlasenko | 78fb6ea | 2015-10-07 02:00:11 +0200 | [diff] [blame] | 4 | PREFIX="i686-" |
| 5 | STATIC="-static" |
Denys Vlasenko | 1c6c670 | 2015-10-07 01:39:40 +0200 | [diff] [blame] | 6 | # Standard build: |
| 7 | #PREFIX="" |
| 8 | #STATIC="" |
| 9 | |
Denys Vlasenko | 4acd393 | 2016-12-22 15:13:37 +0100 | [diff] [blame] | 10 | ${PREFIX}gcc -Os -Wall -I wolfssl-* -c ssl_helper.c -o ssl_helper.o |
| 11 | ${PREFIX}gcc $STATIC --start-group ssl_helper.o -lm wolfssl-*/src/.libs/libwolfssl.a --end-group -o ssl_helper |
Denys Vlasenko | 9d20297 | 2016-07-25 17:12:46 +0200 | [diff] [blame] | 12 | ${PREFIX}strip ssl_helper |