Manuel Pégourié-Gonnard | 3385cf4 | 2015-04-02 17:59:30 +0100 | [diff] [blame^] | 1 | #!/bin/sh |
2 | |||||
3 | set -eu | ||||
4 | |||||
5 | if grep -i cmake Makefile >/dev/null; then | ||||
6 | echo "not compatible with cmake" >&2 | ||||
7 | exit 1 | ||||
8 | fi | ||||
9 | |||||
10 | cp include/mbedtls/config.h{,.bak} | ||||
11 | scripts/config.pl full | ||||
12 | CFLAGS=-fno-asynchronous-unwind-tables make clean lib >/dev/null 2>&1 | ||||
13 | mv include/mbedtls/config.h{.bak,} | ||||
14 | nm -gUj library/libmbedtls.a 2>/dev/null | sed -n -e 's/^_//p' | sort > exported-symbols | ||||
15 | make clean | ||||
16 | |||||
17 | wc -l exported-symbols |