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 | |
| 10 | ${PREFIX}gcc -Os -Wall -I.. -c ssl_helper.c -o ssl_helper.o |
| 11 | ${PREFIX}gcc $STATIC --start-group ssl_helper.o -lm ../src/.libs/libwolfssl.a --end-group -o ssl_helper |
Denys Vlasenko | 78fb6ea | 2015-10-07 02:00:11 +0200 | [diff] [blame] | 12 | ${PREFIX}-strip ssl_helper |