mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-24 11:28:09 +00:00
Fix list-symbols.sh
- make it work on Linux - use all three libraries
This commit is contained in:
parent
9afdc83d77
commit
bf6ed08aaa
1 changed files with 5 additions and 1 deletions
|
@ -16,7 +16,11 @@ cp include/mbedtls/config.h include/mbedtls/config.h.bak
|
||||||
scripts/config.pl full
|
scripts/config.pl full
|
||||||
CFLAGS=-fno-asynchronous-unwind-tables make clean lib >/dev/null 2>&1
|
CFLAGS=-fno-asynchronous-unwind-tables make clean lib >/dev/null 2>&1
|
||||||
mv include/mbedtls/config.h.bak include/mbedtls/config.h
|
mv include/mbedtls/config.h.bak include/mbedtls/config.h
|
||||||
nm -gUj library/libmbedtls.a 2>/dev/null | sed -n -e 's/^_//p' | sort > exported-symbols
|
if uname | grep -F Darwin >/dev/null; then
|
||||||
|
nm -gUj library/libmbed*.a 2>/dev/null | sed -n -e 's/^_//p'
|
||||||
|
elif uname | grep -F Linux >/dev/null; then
|
||||||
|
nm -og library/libmbed*.a | grep -v '^[^ ]*: *U \|^$\|^[^ ]*:$' | sed 's/^[^ ]* . //'
|
||||||
|
fi | sort > exported-symbols
|
||||||
make clean
|
make clean
|
||||||
|
|
||||||
wc -l exported-symbols
|
wc -l exported-symbols
|
||||||
|
|
Loading…
Reference in a new issue